From e048cfe016f7a6edf1f04aafff831aa20dead81b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 19 Jan 2016 18:45:22 +0100 Subject: [PATCH] Upon successful completion, 0 is returned for sysctlbyname --- performance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/performance.c b/performance.c index c7d08bfd76..3ce5fc3511 100644 --- a/performance.c +++ b/performance.c @@ -549,9 +549,9 @@ uint64_t retro_get_cpu_features(void) #elif defined(__MACH__) size_t len = sizeof(size_t); size_t alt_len = sizeof(size_t); - if (!sysctlbyname("hw.optional.altivec", NULL, &alt_len, NULL, 0)) + if (sysctlbyname("hw.optional.altivec", NULL, &alt_len, NULL, 0) == 0) cpu |= RETRO_SIMD_VMX; - if (!sysctlbyname("hw.optional.neon", NULL, &len, NULL, 0)) + if (sysctlbyname("hw.optional.neon", NULL, &len, NULL, 0) == 0) cpu |= RETRO_SIMD_NEON; #elif defined(__linux__) cpu_flags = linux_get_cpu_features();