Skip to content
Snippets Groups Projects
Verified Commit 4d523a9f authored by Pavel P's avatar Pavel P Committed by Jean-Marc Valin
Browse files

Proper detection of _mm_cvtss_si32 for MS compiler

parent aebc9046
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ static OPUS_INLINE opus_int32 float2int(float x) {return _mm_cvt_ss2si(_mm_set_s
#include <math.h>
#define float2int(x) lrint(x)
#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && defined (_M_X64)
#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 1))
#include <xmmintrin.h>
__inline long int float2int(float value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment