Skip to content

Commit

Permalink
memtrace: Fix build without SSE2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed May 6, 2016
1 parent 1c9b44a commit eccf423
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions wrappers/memtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eccf423

Please sign in to comment.