Changeset 2882 for code/trunk/src/bullet/LinearMath/btScalar.h
- Timestamp:
- Mar 31, 2009, 8:05:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/bullet/LinearMath/btScalar.h
r2662 r2882 26 26 #include <float.h> 27 27 28 #define BT_BULLET_VERSION 27 328 #define BT_BULLET_VERSION 274 29 29 30 30 inline int btGetVersion() … … 46 46 #define ATTRIBUTE_ALIGNED128(a) a 47 47 #else 48 #define BT_HAS_ALIGNED_ALLOCATOR48 //#define BT_HAS_ALIGNED_ALLOCATOR 49 49 #pragma warning(disable : 4324) // disable padding warning 50 50 // #pragma warning(disable:4530) // Disable the exception disable but used in MSCV Stl warning. … … 62 62 #define btFsel(a,b,c) __fsel((a),(b),(c)) 63 63 #else 64 65 #if (defined (WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined (BT_USE_DOUBLE_PRECISION)) 64 66 #define BT_USE_SSE 65 #endif 67 #include <emmintrin.h> 68 #endif 69 70 #endif//_XBOX 71 66 72 #endif //__MINGW32__ 67 73 … … 125 131 126 132 #define SIMD_FORCE_INLINE inline 133 ///@todo: check out alignment methods for other platforms/compilers 134 ///#define ATTRIBUTE_ALIGNED16(a) a __attribute__ ((aligned (16))) 135 ///#define ATTRIBUTE_ALIGNED128(a) a __attribute__ ((aligned (128))) 127 136 #define ATTRIBUTE_ALIGNED16(a) a 128 137 #define ATTRIBUTE_ALIGNED128(a) a … … 228 237 SIMD_FORCE_INLINE btScalar btExp(btScalar x) { return expf(x); } 229 238 SIMD_FORCE_INLINE btScalar btLog(btScalar x) { return logf(x); } 230 #if defined( __MINGW32__ ) 231 SIMD_FORCE_INLINE btScalar btPow(btScalar x,btScalar y) { return pow(x,y); } 232 #else 233 SIMD_FORCE_INLINE btScalar btPow(btScalar x,btScalar y) { return powf(x,y); } 234 #endif 235 239 SIMD_FORCE_INLINE btScalar btPow(btScalar x,btScalar y) { return powf(x,y); } 240 236 241 #endif 237 242
Note: See TracChangeset
for help on using the changeset viewer.