diff --git a/performance.c b/performance.c index e1a8faa355..97b475af7b 100644 --- a/performance.c +++ b/performance.c @@ -222,14 +222,18 @@ void rarch_get_cpu_features(struct rarch_cpu_features *cpu) if (flags[2] & (1 << 0)) cpu->simd |= RARCH_SIMD_SSE3; + if (flags[2] & (1 << 9)) + cpu->simd |= RARCH_SIMD_SSSE3; + const int avx_flags = (1 << 27) | (1 << 28); if ((flags[2] & avx_flags) == avx_flags) cpu->simd |= RARCH_SIMD_AVX; - RARCH_LOG("[CPUID]: SSE: %u\n", !!(cpu->simd & RARCH_SIMD_SSE)); - RARCH_LOG("[CPUID]: SSE2: %u\n", !!(cpu->simd & RARCH_SIMD_SSE2)); - RARCH_LOG("[CPUID]: SSE3: %u\n", !!(cpu->simd & RARCH_SIMD_SSE3)); - RARCH_LOG("[CPUID]: AVX: %u\n", !!(cpu->simd & RARCH_SIMD_AVX)); + RARCH_LOG("[CPUID]: SSE: %u\n", !!(cpu->simd & RARCH_SIMD_SSE)); + RARCH_LOG("[CPUID]: SSE2: %u\n", !!(cpu->simd & RARCH_SIMD_SSE2)); + RARCH_LOG("[CPUID]: SSE3: %u\n", !!(cpu->simd & RARCH_SIMD_SSE3)); + RARCH_LOG("[CPUID]: SSSE3: %u\n", !!(cpu->simd & RARCH_SIMD_SSSE3)); + RARCH_LOG("[CPUID]: AVX: %u\n", !!(cpu->simd & RARCH_SIMD_AVX)); #elif defined(ANDROID) && defined(ANDROID_ARM) uint64_t cpu_flags = android_getCpuFeatures(); diff --git a/performance.h b/performance.h index 2fde5a1f9d..3bc5992c20 100644 --- a/performance.h +++ b/performance.h @@ -58,6 +58,7 @@ struct rarch_cpu_features #define RARCH_SIMD_AVX (1 << 4) #define RARCH_SIMD_NEON (1 << 5) #define RARCH_SIMD_SSE3 (1 << 6) +#define RARCH_SIMD_SSSE3 (1 << 7) void rarch_get_cpu_features(struct rarch_cpu_features *cpu);