diff options
-rw-r--r-- | wrappers/memtrace.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/wrappers/memtrace.cpp b/wrappers/memtrace.cpp index 4707f8b7..fc89a8db 100644 --- a/wrappers/memtrace.cpp +++ b/wrappers/memtrace.cpp @@ -36,14 +36,17 @@ #if \ - defined(__i386__) /* gcc */ || defined(_M_IX86) /* msvc */ || \ - defined(__x86_64__) /* gcc */ || defined(_M_X64) /* msvc */ || defined(_M_AMD64) /* msvc */ + (defined(__i386__) && defined(__SSE2__)) /* gcc */ || \ + defined(_M_IX86) /* msvc */ || \ + defined(__x86_64__) /* gcc */ || \ + defined(_M_X64) /* msvc */ || \ + defined(_M_AMD64) /* msvc */ -#define HAVE_SSE2 +# define HAVE_SSE2 // TODO: Detect and leverage SSE 4.1 and 4.2 at runtime -#undef HAVE_SSE41 -#undef HAVE_SSE42 +# undef HAVE_SSE41 +# undef HAVE_SSE42 #endif |