/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_CONSTANTS_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_CONSTANTS_H_ // Maths constants. // The following macros are not always available on all platforms. // E.g. MSVC requires additional compile flag to export those. #ifndef M_E #define M_E … #endif #ifndef M_LOG2E #define M_LOG2E … #endif #ifndef M_LOG10E #define M_LOG10E … #endif #ifndef M_LN2 #define M_LN2 … #endif #ifndef M_LN10 #define M_LN10 … #endif #ifndef M_PI #define M_PI … #endif #ifndef M_PI_2 #define M_PI_2 … #endif #ifndef M_PI_4 #define M_PI_4 … #endif #ifndef M_1_PI #define M_1_PI … #endif #ifndef M_2_PI #define M_2_PI … #endif #ifndef M_2_SQRTPI #define M_2_SQRTPI … #endif #ifndef M_SQRT2 #define M_SQRT2 … #endif #ifndef M_SQRT1_2 #define M_SQRT1_2 … #endif #endif // TENSORFLOW_LITE_KERNELS_INTERNAL_CONSTANTS_H_