mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
(performance.c) Add RETRO_SIMD_AES
This commit is contained in:
parent
6a5f614215
commit
2d08fbb875
@ -897,6 +897,7 @@ struct retro_log_callback
|
||||
#define RETRO_SIMD_AVX2 (1 << 12)
|
||||
#define RETRO_SIMD_VFPU (1 << 13)
|
||||
#define RETRO_SIMD_PS (1 << 14)
|
||||
#define RETRO_SIMD_AES (1 << 15)
|
||||
|
||||
typedef uint64_t retro_perf_tick_t;
|
||||
typedef int64_t retro_time_t;
|
||||
|
@ -386,6 +386,9 @@ uint64_t rarch_get_cpu_features(void)
|
||||
if (flags[2] & (1 << 20))
|
||||
cpu |= RETRO_SIMD_SSE42;
|
||||
|
||||
if (flags[2] & (1 << 25))
|
||||
cpu |= RETRO_SIMD_AES;
|
||||
|
||||
const int avx_flags = (1 << 27) | (1 << 28);
|
||||
// Must only perform xgetbv check if we have AVX CPU support (guaranteed to have at least i686).
|
||||
if (((flags[2] & avx_flags) == avx_flags) && ((xgetbv_x86(0) & 0x6) == 0x6))
|
||||
@ -417,6 +420,7 @@ uint64_t rarch_get_cpu_features(void)
|
||||
RARCH_LOG("[CPUID]: SSSE3: %u\n", !!(cpu & RETRO_SIMD_SSSE3));
|
||||
RARCH_LOG("[CPUID]: SSE4: %u\n", !!(cpu & RETRO_SIMD_SSE4));
|
||||
RARCH_LOG("[CPUID]: SSE4.2: %u\n", !!(cpu & RETRO_SIMD_SSE42));
|
||||
RARCH_LOG("[CPUID]: AES: %u\n", !!(cpu & RETRO_SIMD_AES));
|
||||
RARCH_LOG("[CPUID]: AVX: %u\n", !!(cpu & RETRO_SIMD_AVX));
|
||||
RARCH_LOG("[CPUID]: AVX2: %u\n", !!(cpu & RETRO_SIMD_AVX2));
|
||||
#elif defined(ANDROID) && defined(ANDROID_ARM)
|
||||
|
Loading…
x
Reference in New Issue
Block a user