mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Explicitly rename has_512 into has_avx512 (#7751)
This commit is contained in:
parent
b4f416cb76
commit
4e25daffa6
4 changed files with 24 additions and 24 deletions
|
@ -56,10 +56,10 @@ bool utils::has_mpx()
|
|||
return g_value;
|
||||
}
|
||||
|
||||
bool utils::has_512()
|
||||
bool utils::has_avx512()
|
||||
{
|
||||
// Check AVX512F, AVX512CD, AVX512DQ, AVX512BW, AVX512VL extensions (Skylake-X level support)
|
||||
static const bool g_value = get_cpuid(0, 0)[0] >= 0x7 && (get_cpuid(7, 0)[1] & 0xd0030000) == 0xd0030000 && (get_cpuid(1,0)[2] & 0x0C000000) == 0x0C000000 && (get_xgetbv(0) & 0xe6) == 0xe6;
|
||||
static const bool g_value = get_cpuid(0, 0)[0] >= 0x7 && (get_cpuid(7, 0)[1] & 0xd0030000) == 0xd0030000 && (get_cpuid(1, 0)[2] & 0x0C000000) == 0x0C000000 && (get_xgetbv(0) & 0xe6) == 0xe6;
|
||||
return g_value;
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ std::string utils::get_system_info()
|
|||
result += '+';
|
||||
}
|
||||
|
||||
if (has_512())
|
||||
if (has_avx512())
|
||||
{
|
||||
result += '+';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue