mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +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() {
|
static bool cpuSupportsAVX() {
|
||||||
unsigned int eax, ebx, ecx, edx;
|
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;
|
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));
|
__asm__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(0));
|
||||||
if (eax & 0x6) == 0x6) {
|
if (eax & 0x6) == 0x6) {
|
||||||
result = true;
|
result = true;
|
||||||
|
|
Loading…
Reference in a new issue