diff --git a/include/bx/inline/simd128_langext.inl b/include/bx/inline/simd128_langext.inl index 0c4479e..0f6fa03 100644 --- a/include/bx/inline/simd128_langext.inl +++ b/include/bx/inline/simd128_langext.inl @@ -9,6 +9,8 @@ namespace bx { + float sqrt(float); + #define ELEMx 0 #define ELEMy 1 #define ELEMz 2 diff --git a/include/bx/inline/simd128_ref.inl b/include/bx/inline/simd128_ref.inl index 121be13..2a47cea 100644 --- a/include/bx/inline/simd128_ref.inl +++ b/include/bx/inline/simd128_ref.inl @@ -7,10 +7,11 @@ # error "Must be included from bx/simd_t.h!" #endif // BX_SIMD_T_H_HEADER_GUARD -#include - namespace bx { + float sqrt(float); + float rsqrt(float); + #define ELEMx 0 #define ELEMy 1 #define ELEMz 2 diff --git a/include/bx/math.h b/include/bx/math.h index c12a7fa..432a533 100644 --- a/include/bx/math.h +++ b/include/bx/math.h @@ -26,6 +26,8 @@ namespace bx extern const float kE; extern const float kNearZero; extern const float kInfinity; + extern const float kFloatMin; + extern const float kFloatMax; /// typedef float (*LerpFn)(float _a, float _b, float _t); diff --git a/src/math.cpp b/src/math.cpp index b792651..87948f6 100644 --- a/src/math.cpp +++ b/src/math.cpp @@ -174,7 +174,6 @@ namespace bx static const float kExpC2 = 6.61375632143793436117e-05f; static const float kExpC3 = -1.65339022054652515390e-06f; static const float kExpC4 = 4.13813679705723846039e-08f; - static const float kExpMax = 7.09782712893383973096e+02f; } // namespace