mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
SPU ASMJIT v2.0
Use X86Assembler and blocks
This commit is contained in:
parent
477522210e
commit
8ca33bcb94
12 changed files with 1363 additions and 1187 deletions
|
@ -13,6 +13,12 @@ bool utils::has_ssse3()
|
|||
return g_value;
|
||||
}
|
||||
|
||||
bool utils::has_sse41()
|
||||
{
|
||||
static const bool g_value = get_cpuid(0, 0)[0] >= 0x1 && get_cpuid(1, 0)[2] & 0x80000;
|
||||
return g_value;
|
||||
}
|
||||
|
||||
bool utils::has_avx()
|
||||
{
|
||||
static const bool g_value = get_cpuid(0, 0)[0] >= 0x1 && get_cpuid(1, 0)[2] & 0x10000000 && (get_cpuid(1, 0)[2] & 0x0C000000) == 0x0C000000 && (get_xgetbv(0) & 0x6) == 0x6;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue