CELT_SET_END_BAND_REQUEST in the decoder was performing the wrong bounds check and...
[opus.git] / libcelt / float_cast.h
index 280b491..b2ffe24 100644 (file)
 #include       <math.h>
 #define float2int(x) lrint(x)
 
+#elif (defined (WIN64) || defined (_WIN64))
+       #include <xmmintrin.h>
+
+       __inline long int float2int(float value)
+       {
+               return _mm_cvtss_si32(_mm_load_ss(&value));
+       }
 #elif (defined (WIN32) || defined (_WIN32))
 
        #include        <math.h>