From: Matthew Barr Date: Mon, 12 Dec 2016 23:01:16 +0000 (+1100) Subject: SSE2 preprocessor test for MSVC X-Git-Tag: v4.4.0^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=833474506318255832ca808de592ed44138cb982;p=thirdparty%2Fvectorscan.git SSE2 preprocessor test for MSVC MSVC doesn't define __SSE2__ but we can figure it out from other macros. --- diff --git a/src/util/simd_types.h b/src/util/simd_types.h index 74e2abec..d6e5d6a3 100644 --- a/src/util/simd_types.h +++ b/src/util/simd_types.h @@ -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;