fix typos

This commit is contained in:
Ken Cooke 2016-02-11 16:33:13 -08:00
parent 8a49c4b833
commit a712222370

View file

@ -149,11 +149,11 @@ static bool cpuSupportsAVX() {
static bool cpuSupportsAVX() {
unsigned int eax, ebx, ecx, edx;
int mask = (1 << 27) | (1 << 28); // OSXSAVE and AVX
unsigned int mask = (1 << 27) | (1 << 28); // OSXSAVE and AVX
bool result = false;
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && ((ecx & mask) == mask) {
if (__get_cpuid(0x1, &eax, &ebx, &ecx, &edx) && ((ecx & mask) == mask)) {
__asm__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(0));
if (eax & 0x6) == 0x6) {
result = true;