Core/HardwareInfo: Fix indentation (Windows)
Former-commit-id: 6c10c551860e30d80952e42d384e2d18bb9fda3c [formerly 70cffdb9c25b08ed64d6b47f9d324f04c7740a72] [formerly 3448fa94c62871de1ec9629779c9a614d9909499 [formerly 9475d9cca2e37fb4b0af52a6503e728bf979d26a]] Former-commit-id: 1d315648e6ec9e74be8733634b49a52c157c1ec9 [formerly 420fc7c77d0252bde216180a7eb08262405ab3e3] Former-commit-id: 9b96e2ae7cb58fa531566984ee6bec1a40771745
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user