Fix ARM runtime NEON detection
This commit is contained in:
parent
76f465e127
commit
34159e4594
@ -161,17 +161,16 @@ 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
|
||||||
/* Non-Intel architecture, nothing to do here */
|
/* Non-Intel architecture, nothing to do here */
|
||||||
|
Loading…
Reference in New Issue
Block a user