13
0

fix stupid logic error in testing separate bits required for AVX support

This commit is contained in:
Paul Davis 2015-08-11 20:18:38 -04:00
parent ec5eccd3a3
commit bb399c8787

View File

@ -97,7 +97,10 @@ FPU::FPU ()
#endif /* PLATFORM_WINDOWS */
#ifndef __APPLE__
if (cpuflags & ((1<<27) /* AVX */ |(1<<28) /* XGETBV */)) {
/* must check for both AVX and OSXSAVE support in cpuflags before
* attempting to use AVX related instructions.
*/
if ((cpuflags & (1<<27)) /* AVX */ && (cpuflags & (1<<28) /* (OS)XSAVE */)) {
std::cerr << "Looks like AVX\n";