SPU ASMJIT v2.0
Use X86Assembler and blocks
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -29,6 +29,8 @@ namespace utils
|
||||
|
||||
bool has_ssse3();
|
||||
|
||||
bool has_sse41();
|
||||
|
||||
bool has_avx();
|
||||
|
||||
bool has_avx2();
|
||||
|
||||
Reference in New Issue
Block a user