Commit a4cb7b15 authored by Peter Steinbach's avatar Peter Steinbach Committed by GitHub

Merge pull request #14 from psteinb/update_windows_ct_definitions

added another heuristic to detect SSE at compile time on Win with MSV…
parents 34d1be95 73e8bc52
......@@ -19,10 +19,18 @@
#else
//TODO: try to warn users on Windows that we are enabling SSE3 + SSE4 upon assumption here
#if _M_IX86_FP >= 2
#define COMPASS_CT_HAS_SSE2 1
#define COMPASS_CT_HAS_SSE3 1
#define COMPASS_CT_HAS_SSE4 1
#ifdef _M_IX86_FP
#if _M_IX86_FP >= 2
#define COMPASS_CT_HAS_SSE2 1
#define COMPASS_CT_HAS_SSE3 1
#define COMPASS_CT_HAS_SSE4 1
#endif
#else
#if defined(__AVX__) || defined(__AVX2__)
#define COMPASS_CT_HAS_SSE2 1
#define COMPASS_CT_HAS_SSE3 1
#define COMPASS_CT_HAS_SSE4 1
#endif
#endif
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment