summaryrefslogtreecommitdiff
path: root/include/tools/cpuid.hxx
AgeCommit message (Collapse)Author
2016-02-02Test for SSE2 at run-time on WindowsTor Lillqvist
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
2015-11-13underscores are reservedTomaž Vajngerl
Change-Id: Iee60389ccc9e348db6ed00e48e32b1e86f17b530
2015-11-13improve compile time SSE2 detection, fix broken android buildTomaž Vajngerl
Prereq. to enable runtime SSE2 detection is that the compiler supports it in the first place. MSVS and GCC use different compiler flags for this so use __LO_SSE2_AVAILABLE__ to make this build platform independent. emmintrin.h is unavailable on ARM Android so include this and compile the SSE2 specific code only when we are sure we can build SSE2 code (__LO_SSE2_AVAILABLE__ is defined). Change-Id: I212c4e0b99a314d087b9def822a81325b25f3469
2015-11-13remove SSE detection code (but keep SSE2)Tomaž Vajngerl
For corner case CPUs out there that support SSE and not SSE2 it makes more sense to use the "fallback" code path instead of writing a SSE only version. For this reason detecting SSE is not relevant anymore - so removing it. Change-Id: I3f1425af2cb5cdf9fba699e2996014598a15b5c1
2015-11-13tools: runtime SSE/SSE2 detectionTomaž Vajngerl
Change-Id: I29330061e2986ec2ae899c2f3a63d0eadd9cc194