1
0
Fork 0

fix _XCR_XFEATURE_ENABLED_MASK define for Mingw compiler

pull/3602/head
JackWright347 2021-07-24 16:14:44 +02:00
parent 176936c973
commit 60d9aeb442
1 changed files with 4 additions and 2 deletions

View File

@ -51,8 +51,6 @@ const CpuInfo::CpuId Stockfish::CpuInfo::CPUID;
__asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index));
return ((uint64_t)edx << 32) | eax;
}
#define _XCR_XFEATURE_ENABLED_MASK 0
#else
# message "No CPU-ID intrinsic defined for compiler."
@ -61,6 +59,10 @@ const CpuInfo::CpuId Stockfish::CpuInfo::CPUID;
# message "No CPU-ID intrinsic defined for processor architecture (currently only x86-32/64 is supported)."
#endif
#ifndef _XCR_XFEATURE_ENABLED_MASK
#define _XCR_XFEATURE_ENABLED_MASK 0
#endif
bool CpuInfo::detect_OS_AVX() {
bool avxSupported = false;