diff --git a/MUtilities_VS2010.vcxproj b/MUtilities_VS2010.vcxproj index f940c57..cbb59a7 100644 --- a/MUtilities_VS2010.vcxproj +++ b/MUtilities_VS2010.vcxproj @@ -1,5 +1,5 @@  - + Debug diff --git a/src/CPUFeatures_Win32.cpp b/src/CPUFeatures_Win32.cpp index 32b58a8..1220744 100644 --- a/src/CPUFeatures_Win32.cpp +++ b/src/CPUFeatures_Win32.cpp @@ -63,7 +63,7 @@ MUtils::CPUFetaures::cpu_info_t MUtils::CPUFetaures::detect(void) if(CPUInfo[2] & 0x00100000) features.features |= FLAG_SSE42; if ((CPUInfo[2] & 0x18000000) == 0x18000000) { - if (IsProcessorFeaturePresent(PF_XSAVE_ENABLED)) /*AVX requires OS support!*/ + if((_xgetbv(0) & 0x6ui64) == 0x6ui64) /*AVX requires OS support!*/ { features.features |= FLAG_AVX; }