13
0

Fix ARM runtime NEON detection

This commit is contained in:
Robin Gareus 2020-08-24 22:03:28 +02:00
parent 76f465e127
commit 34159e4594
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -161,16 +161,15 @@ FPU::FPU ()
return; return;
} }
#ifdef ARM_NEON_SUPPORT #ifdef ARM_NEON_SUPPORT
#ifdef __aarch64__ # ifdef __aarch64__
if (getauxval(AT_HWCAP) & HWCAP_SIMD) /* all armv8+ features NEON used in arm_neon_functions.cc */
#else _flags = Flags(_flags | HasNEON);
if (getauxval(AT_HWCAP) & HWCAP_NEON) # elif defined __arm__
#endif if (getauxval(AT_HWCAP) & HWCAP_NEON) {
{ _flags = Flags(_flags | HasNEON);
_flags = Flags(_flags & HasNEON);
} }
# endif
#endif #endif
#if !( (defined __x86_64__) || (defined __i386__) || (defined _M_X64) || (defined _M_IX86) ) // !ARCH_X86 #if !( (defined __x86_64__) || (defined __i386__) || (defined _M_X64) || (defined _M_IX86) ) // !ARCH_X86