diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-02-02 16:36:10 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-02-02 17:21:20 +0200 |
commit | 4f68c279e4d81cd44ab14bcaf6da7d596a741971 (patch) | |
tree | 0a0dec7adfb7a894ba28f4a4cde5285455abe240 /include | |
parent | 4cbd8e7bf3e69cfda3d84e86f1adedac636a055e (diff) |
Test for SSE2 at run-time on Windows
To run on ancient CPUs, we compile for Windows with -arch:SSE since
8bd6bf93b7711a7ac7c5cbd7c3bb980481570ebd (August 2014). Thus
_M_IX86_FP gets defined as 1. This meant that LO_SSE2_AVAILABLE did
not get defined, and that we hardcoded tools::cpuid::hasSSE2() as
always returning false. That was hardly the intent.
Change-Id: I7ee34510a774dab865c8990b74b91a5284218a96
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/cpuid.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/cpuid.hxx b/include/tools/cpuid.hxx index f058f23fb727..d7aa07d54258 100644 --- a/include/tools/cpuid.hxx +++ b/include/tools/cpuid.hxx @@ -16,7 +16,7 @@ #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && defined(__SSE2__) #define LO_SSE2_AVAILABLE 1 -#elif defined(_MSC_VER) && (defined(_M_AMD64) || (defined(_M_IX86) && defined(_M_IX86_FP) && _M_IX86_FP >= 2)) +#elif defined(_MSC_VER) #define LO_SSE2_AVAILABLE 1 #endif |