summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-05-06 10:18:40 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-05-06 10:18:40 +0100
commiteccf423337f2f55d9ce32df3130d257ec4acec6c (patch)
tree3836dcf115a86e2de62035138e0b0b302b39247d /wrappers
parent1c9b44a803d93236f302a1add4b8b22bb1644351 (diff)
memtrace: Fix build without SSE2.
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/memtrace.cpp13
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