mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
SPU: use XOP instructions
This commit is contained in:
parent
84103b69cf
commit
e2439e962c
3 changed files with 140 additions and 0 deletions
|
@ -39,6 +39,12 @@ bool utils::has_512()
|
|||
return g_value;
|
||||
}
|
||||
|
||||
bool utils::has_xop()
|
||||
{
|
||||
static const bool g_value = has_avx() && get_cpuid(0x80000001, 0)[2] & 0x800;
|
||||
return g_value;
|
||||
}
|
||||
|
||||
std::string utils::get_system_info()
|
||||
{
|
||||
std::string result;
|
||||
|
@ -92,6 +98,11 @@ std::string utils::get_system_info()
|
|||
{
|
||||
result += '+';
|
||||
}
|
||||
|
||||
if (has_xop())
|
||||
{
|
||||
result += 'x';
|
||||
}
|
||||
}
|
||||
|
||||
if (has_rtm())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue