mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 11:44:28 +03:00
SSE2 preprocessor test for MSVC
MSVC doesn't define __SSE2__ but we can figure it out from other macros.
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
#error no intrinsics!
|
#error no intrinsics!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__SSE2__)
|
#if defined(__SSE2__) || defined(_M_X64) || (_M_IX86_FP >= 2)
|
||||||
typedef __m128i m128;
|
typedef __m128i m128;
|
||||||
#else
|
#else
|
||||||
typedef struct ALIGN_DIRECTIVE {u64a hi; u64a lo;} m128;
|
typedef struct ALIGN_DIRECTIVE {u64a hi; u64a lo;} m128;
|
||||||
|
Reference in New Issue
Block a user