]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
SSE2 preprocessor test for MSVC
authorMatthew Barr <matthew.barr@intel.com>
Mon, 12 Dec 2016 23:01:16 +0000 (10:01 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 14 Dec 2016 04:35:44 +0000 (15:35 +1100)
MSVC doesn't define __SSE2__ but we can figure it out from
other macros.

src/util/simd_types.h

index 74e2abecb065fa272976d6076460a19e763816bb..d6e5d6a3e9c5cec6ef631a5a022b47dcd7c4bd1d 100644 (file)
@@ -61,7 +61,7 @@
 #error no intrinsics!
 #endif
 
-#if defined(__SSE2__)
+#if defined(__SSE2__) || defined(_M_X64) || (_M_IX86_FP >= 2)
 typedef __m128i m128;
 #else
 typedef struct ALIGN_DIRECTIVE {u64a hi; u64a lo;} m128;