From a71222237015f81596c74fc6d52ffd7dc3a563fb Mon Sep 17 00:00:00 2001 From: Ken Cooke Date: Thu, 11 Feb 2016 16:33:13 -0800 Subject: [PATCH] fix typos --- libraries/audio/src/AudioHRTF.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/audio/src/AudioHRTF.cpp b/libraries/audio/src/AudioHRTF.cpp index 13735e0a5e..7f1136f29d 100644 --- a/libraries/audio/src/AudioHRTF.cpp +++ b/libraries/audio/src/AudioHRTF.cpp @@ -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;