diff --git a/check_isa.cpp b/check_isa.cpp index 3f8b487d..a4d10606 100644 --- a/check_isa.cpp +++ b/check_isa.cpp @@ -69,7 +69,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. diff --git a/ispc.cpp b/ispc.cpp index 419c64ab..859865a5 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -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.