Fix aarch64 builds

This commit is contained in:
Robin Gareus 2020-08-24 21:23:37 +02:00
parent 1f878636c8
commit a0a4477c84
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -163,7 +163,12 @@ FPU::FPU ()
#ifdef ARM_NEON_SUPPORT
if (getauxval(AT_HWCAP) & HWCAP_NEON) {
#ifdef __aarch64__
if (getauxval(AT_HWCAP) & HWCAP_SIMD)
#else
if (getauxval(AT_HWCAP) & HWCAP_NEON)
#endif
{
_flags = Flags(_flags & HasNEON);
}
#endif