This commit is contained in:
Dmitry Babokin
2013-10-29 01:35:26 +04:00
parent 9004f090c5
commit 362ee06b9f
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ static bool __os_has_avx_support() {
// Check if the OS will save the YMM registers
unsigned long long xcrFeatureMask = _xgetbv(_XCR_XFEATURE_ENABLED_MASK);
return (xcrFeatureMask & 6) == 6;
#else // defined(ISPC_IS_WINDOWS)
#else // !defined(ISPC_IS_WINDOWS)
// Check xgetbv; this uses a .byte sequence instead of the instruction
// directly because older assemblers do not include support for xgetbv and
// there is no easy way to conditionally compile based on the assembler used.