Core/HardwareInfo: Fix indentation (Windows)
Former-commit-id: 671c53304bd94ae774a8c8520a5c97dbf7177ab6 [formerly fe014ab5c3605ddd3940e3e0c9da9fcc4be324a1] [formerly 51202a9ddac0b11adffc29bb706ec06a62e488c0 [formerly cd17653d4dad37f98c45b4a9293ea14fe86c97c8]] Former-commit-id: df48b40400b2f8e1652f6cb234b2fa0cf103b263 [formerly 59fe6beeb03df44323eaf57ab1f7019c0d3c3313] Former-commit-id: cf1af1dfed868d8a63130616f4e0d0135cd0c87b
This commit is contained in:
parent
1f2719fd17
commit
280bf97ba9
|
|
@ -76,25 +76,25 @@ namespace Nz
|
|||
#elif defined(NAZARA_COMPILER_CLANG) || defined(NAZARA_COMPILER_GCC) || defined(NAZARA_COMPILER_INTEL)
|
||||
int supported;
|
||||
asm volatile (" pushfl\n"
|
||||
" pop %%eax\n"
|
||||
" mov %%eax, %%ecx\n"
|
||||
" xor $0x200000, %%eax\n"
|
||||
" push %%eax\n"
|
||||
" popfl\n"
|
||||
" pushfl\n"
|
||||
" pop %%eax\n"
|
||||
" xor %%ecx, %%eax\n"
|
||||
" mov %%eax, %0\n"
|
||||
" push %%ecx\n"
|
||||
" popfl"
|
||||
: "=m" (supported) // output
|
||||
: // input
|
||||
: "eax", "ecx", "memory"); // clobbered register
|
||||
" pop %%eax\n"
|
||||
" mov %%eax, %%ecx\n"
|
||||
" xor $0x200000, %%eax\n"
|
||||
" push %%eax\n"
|
||||
" popfl\n"
|
||||
" pushfl\n"
|
||||
" pop %%eax\n"
|
||||
" xor %%ecx, %%eax\n"
|
||||
" mov %%eax, %0\n"
|
||||
" push %%ecx\n"
|
||||
" popfl"
|
||||
: "=m" (supported) // output
|
||||
: // input
|
||||
: "eax", "ecx", "memory"); // clobbered register
|
||||
|
||||
return supported != 0;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue