From 4d523a9fd2d6f525df2aeaf3d659616f9e610f32 Mon Sep 17 00:00:00 2001 From: Pavel P <pavlov.pavel@gmail.com> Date: Tue, 27 Feb 2018 13:16:14 -0800 Subject: [PATCH] Proper detection of _mm_cvtss_si32 for MS compiler Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca> --- celt/float_cast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celt/float_cast.h b/celt/float_cast.h index 98b40abcf..f218e8648 100644 --- a/celt/float_cast.h +++ b/celt/float_cast.h @@ -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) -- GitLab