shithub: opus

Download patch

ref: 4d523a9fd2d6f525df2aeaf3d659616f9e610f32
parent: aebc9046f9902e0c3f44d0d866261294592ea693
author: Pavel P <[email protected]>
date: Tue Feb 27 08:16:14 EST 2018

Proper detection of _mm_cvtss_si32 for MS compiler

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/celt/float_cast.h
+++ b/celt/float_cast.h
@@ -96,7 +96,7 @@
 #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)