SPU: use XOP instructions

This commit is contained in:
Nekotekina 2018-01-16 14:32:57 +03:00
parent 84103b69cf
commit e2439e962c
3 changed files with 140 additions and 0 deletions

View file

@ -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())