mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(Linux) Try to log processor features
This commit is contained in:
parent
b0e4ca599c
commit
137ca5cefe
@ -466,13 +466,23 @@ static void rarch_perf_init_cpu(void)
|
||||
|
||||
x86_cpuid(1, regs);
|
||||
if ((regs[2] & (1 << 9)) != 0)
|
||||
{
|
||||
RARCH_LOG("CPU Feature supported: sse3.\n");
|
||||
g_cpuFeatures |= CPU_X86_FEATURE_SSE3;
|
||||
}
|
||||
|
||||
|
||||
if ((regs[2] & (1 << 23)) != 0)
|
||||
{
|
||||
RARCH_LOG("CPU Feature supported: popcnt.\n");
|
||||
g_cpuFeatures |= CPU_X86_FEATURE_POPCNT;
|
||||
}
|
||||
|
||||
if (vendorIsIntel && (regs[2] & (1 << 22)) != 0)
|
||||
{
|
||||
RARCH_LOG("CPU Feature supported: movbe.\n");
|
||||
g_cpuFeatures |= CPU_X86_FEATURE_MOVBE;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef _MIPS_ARCH
|
||||
|
Loading…
x
Reference in New Issue
Block a user