Core/HardwareInfo: Fix indentation (Windows)
Former-commit-id: 957c2204469bfd54eb4ddacc9af2233368b03eb7 [formerly 14f9e6c9fd12d73552f88d0283a0daff026f8281] [formerly 01fba786c37ebea96a149e65885ed177041a0e12 [formerly f1b7486d7e842b784412db7f8927ce639e03f7d8]] Former-commit-id: 3324d3a7b9699b2569479fc7d68361a3e9c94801 [formerly ac58330399b99c0806e765aa7681e4ee775393de] Former-commit-id: 5216228cf367e02fb1d63ac7ee7eb219c09edbce
This commit is contained in:
parent
486d4fc015
commit
a55926a9d9
|
|
@ -76,25 +76,25 @@ namespace Nz
|
||||||
#elif defined(NAZARA_COMPILER_CLANG) || defined(NAZARA_COMPILER_GCC) || defined(NAZARA_COMPILER_INTEL)
|
#elif defined(NAZARA_COMPILER_CLANG) || defined(NAZARA_COMPILER_GCC) || defined(NAZARA_COMPILER_INTEL)
|
||||||
int supported;
|
int supported;
|
||||||
asm volatile (" pushfl\n"
|
asm volatile (" pushfl\n"
|
||||||
" pop %%eax\n"
|
" pop %%eax\n"
|
||||||
" mov %%eax, %%ecx\n"
|
" mov %%eax, %%ecx\n"
|
||||||
" xor $0x200000, %%eax\n"
|
" xor $0x200000, %%eax\n"
|
||||||
" push %%eax\n"
|
" push %%eax\n"
|
||||||
" popfl\n"
|
" popfl\n"
|
||||||
" pushfl\n"
|
" pushfl\n"
|
||||||
" pop %%eax\n"
|
" pop %%eax\n"
|
||||||
" xor %%ecx, %%eax\n"
|
" xor %%ecx, %%eax\n"
|
||||||
" mov %%eax, %0\n"
|
" mov %%eax, %0\n"
|
||||||
" push %%ecx\n"
|
" push %%ecx\n"
|
||||||
" popfl"
|
" popfl"
|
||||||
: "=m" (supported) // output
|
: "=m" (supported) // output
|
||||||
: // input
|
: // input
|
||||||
: "eax", "ecx", "memory"); // clobbered register
|
: "eax", "ecx", "memory"); // clobbered register
|
||||||
|
|
||||||
return supported != 0;
|
return supported != 0;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue