mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 22:27:13 +02:00
fix typos
This commit is contained in:
parent
8a49c4b833
commit
a712222370
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue