fix using SSE on non x86 targets

This commit is contained in:
David Morgan
2017-03-13 19:14:10 +00:00
parent bd3009a5eb
commit 6e35a9ee64

View File

@@ -71,6 +71,7 @@ inline int b3GetVersion()
#else #else
#if (defined (_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined (B3_USE_DOUBLE_PRECISION)) #if (defined (_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined (B3_USE_DOUBLE_PRECISION))
#if (defined (_M_IX86) || defined (_M_X64))
#define B3_USE_SSE #define B3_USE_SSE
#ifdef B3_USE_SSE #ifdef B3_USE_SSE
//B3_USE_SSE_IN_API is disabled under Windows by default, because //B3_USE_SSE_IN_API is disabled under Windows by default, because
@@ -82,6 +83,7 @@ inline int b3GetVersion()
//#define B3_USE_SSE_IN_API //#define B3_USE_SSE_IN_API
#endif //B3_USE_SSE #endif //B3_USE_SSE
#include <emmintrin.h> #include <emmintrin.h>
#endif
#endif #endif
#endif//_XBOX #endif//_XBOX