summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Gutman <aicommander@gmail.com>2014-11-19 03:02:11 -0500
committerTristan Matthews <tmatth@videolan.org>2014-11-19 03:04:14 -0500
commit8921f82fb9453a82f53280179f7b4fe50f4246e6 (patch)
tree0766758d58af1eee2b5688cf47a101627add2dc6
parent8ab1968e13fcedbe5c60859b9f3b60193061d9bb (diff)
downloadopus-8921f82fb9453a82f53280179f7b4fe50f4246e6.tar.gz
float_cast: Fix MSVC ARM build
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
-rw-r--r--celt/float_cast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/celt/float_cast.h b/celt/float_cast.h
index ede65748..ed5a39b5 100644
--- a/celt/float_cast.h
+++ b/celt/float_cast.h
@@ -90,14 +90,14 @@
#include <math.h>
#define float2int(x) lrint(x)
-#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64))
+#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && defined (_M_X64)
#include <xmmintrin.h>
__inline long int float2int(float value)
{
return _mm_cvtss_si32(_mm_load_ss(&value));
}
-#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN32) || defined (_WIN32))
+#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && defined (_M_IX86)
#include <math.h>
/* Win32 doesn't seem to have these functions.