mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
retro_get_cpu_features: __MACH__ - use only one len variable
This commit is contained in:
parent
e048cfe016
commit
30c7494122
1 changed files with 2 additions and 2 deletions
|
@ -548,9 +548,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) == 0)
|
||||
if (sysctlbyname("hw.optional.altivec", NULL, &len, NULL, 0) == 0)
|
||||
cpu |= RETRO_SIMD_VMX;
|
||||
len = sizeof(size_t);
|
||||
if (sysctlbyname("hw.optional.neon", NULL, &len, NULL, 0) == 0)
|
||||
cpu |= RETRO_SIMD_NEON;
|
||||
#elif defined(__linux__)
|
||||
|
|
Loading…
Add table
Reference in a new issue