mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-26 20:54:47 +00:00
Upon successful completion, 0 is returned for sysctlbyname
This commit is contained in:
parent
c4fabd65a1
commit
e048cfe016
@ -549,9 +549,9 @@ uint64_t retro_get_cpu_features(void)
|
|||||||
#elif defined(__MACH__)
|
#elif defined(__MACH__)
|
||||||
size_t len = sizeof(size_t);
|
size_t len = sizeof(size_t);
|
||||||
size_t alt_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;
|
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;
|
cpu |= RETRO_SIMD_NEON;
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
cpu_flags = linux_get_cpu_features();
|
cpu_flags = linux_get_cpu_features();
|
||||||
|
Loading…
Reference in New Issue
Block a user