diff options
author | Pavel P <pavlov.pavel@gmail.com> | 2018-02-28 00:16:14 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-10-16 22:59:48 +0300 |
commit | 4d523a9fd2d6f525df2aeaf3d659616f9e610f32 (patch) | |
tree | 4b966777639a53d7c46c197ff79f516c96c86f93 | |
parent | aebc9046f9902e0c3f44d0d866261294592ea693 (diff) |
Proper detection of _mm_cvtss_si32 for MS compiler
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
-rw-r--r-- | celt/float_cast.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/float_cast.h b/celt/float_cast.h index 98b40abc..f218e864 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) |