Browse Source

Fixed Android build.

Branimir Karadžić 8 years ago
parent
commit
672a39f4f4
4 changed files with 7 additions and 3 deletions
  1. 2 0
      include/bx/inline/simd128_langext.inl
  2. 3 2
      include/bx/inline/simd128_ref.inl
  3. 2 0
      include/bx/math.h
  4. 0 1
      src/math.cpp

+ 2 - 0
include/bx/inline/simd128_langext.inl

@@ -9,6 +9,8 @@
 
 
 namespace bx
 namespace bx
 {
 {
+	float sqrt(float);
+
 #define ELEMx 0
 #define ELEMx 0
 #define ELEMy 1
 #define ELEMy 1
 #define ELEMz 2
 #define ELEMz 2

+ 3 - 2
include/bx/inline/simd128_ref.inl

@@ -7,10 +7,11 @@
 #	error "Must be included from bx/simd_t.h!"
 #	error "Must be included from bx/simd_t.h!"
 #endif // BX_SIMD_T_H_HEADER_GUARD
 #endif // BX_SIMD_T_H_HEADER_GUARD
 
 
-#include <bx/math.h>
-
 namespace bx
 namespace bx
 {
 {
+	float sqrt(float);
+	float rsqrt(float);
+
 #define ELEMx 0
 #define ELEMx 0
 #define ELEMy 1
 #define ELEMy 1
 #define ELEMz 2
 #define ELEMz 2

+ 2 - 0
include/bx/math.h

@@ -26,6 +26,8 @@ namespace bx
 	extern const float kE;
 	extern const float kE;
 	extern const float kNearZero;
 	extern const float kNearZero;
 	extern const float kInfinity;
 	extern const float kInfinity;
+	extern const float kFloatMin;
+	extern const float kFloatMax;
 
 
 	///
 	///
 	typedef float (*LerpFn)(float _a, float _b, float _t);
 	typedef float (*LerpFn)(float _a, float _b, float _t);

+ 0 - 1
src/math.cpp

@@ -174,7 +174,6 @@ namespace bx
 		static const float kExpC2  =  6.61375632143793436117e-05f;
 		static const float kExpC2  =  6.61375632143793436117e-05f;
 		static const float kExpC3  = -1.65339022054652515390e-06f;
 		static const float kExpC3  = -1.65339022054652515390e-06f;
 		static const float kExpC4  =  4.13813679705723846039e-08f;
 		static const float kExpC4  =  4.13813679705723846039e-08f;
-		static const float kExpMax =  7.09782712893383973096e+02f;
 
 
 	} // namespace
 	} // namespace