From 33b41e9aea9a894cc3bf940b6a6ebfadbb10db1e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 19 Jan 2016 18:04:26 +0100 Subject: [PATCH] (iOS) Check if NEON support is there --- performance.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/performance.c b/performance.c index 60de681039..cbe3a4e8c5 100644 --- a/performance.c +++ b/performance.c @@ -546,7 +546,13 @@ uint64_t retro_get_cpu_features(void) if (flags[3] & (1 << 22)) cpu |= RETRO_SIMD_MMXEXT; } +#elif defined(__MACH__) + int has_neon; + size_t len = sizeof(size_t); + sysctlbyname("hw.optional.neon", &has_neon, &len, NULL, 0); + if (has_neon) + cpu |= RETRO_SIMD_NEON; #elif defined(__linux__) cpu_flags = linux_get_cpu_features();