Open linkmauve opened 4 years ago
Would this code work on Android and iOS?
I actually don’t know, I don’t have any such device available so I only tested on Linux. According to Android’s documentation it should, but I couldn’t find anything similar for iOS.
Edit: this codepath is only used on Linux anyway, we could extend it to Android but it doesn’t make sense for iOS it seems.
Edit: this codepath is only used on Linux anyway, we could extend it to Android but it doesn’t make sense for iOS it seems.
Linux and Android. Android defines linux as well
getauxval(AT_HWCAP)
is the best way to check for features on ARM and AArch64, as it doesn’t require parsing a file, instead it just returns a value provided by the kernel in our address space.This has been tested on a Nintendo Switch running ArchLinuxARM, on both AArch64 and AArch32.