Commit 65305637 authored by Jan Beich's avatar Jan Beich Committed by Janne Grunau

arm: assume NEON if built with it

Downstream may build with -march=armv7-a and/or -mfpu=neon or have
those enabled by default e.g., on FreeBSD armv7. There's no point
detecting NEON then only to fail if OS doesn't support getauxval().
parent a2bda884
......@@ -72,6 +72,8 @@ unsigned dav1d_get_cpu_flags_arm(void) {
unsigned flags = 0;
#if ARCH_AARCH64
flags |= DAV1D_ARM_CPU_FLAG_NEON;
#elif defined(__ARM_NEON)
flags |= DAV1D_ARM_CPU_FLAG_NEON;
#elif defined(HAVE_GETAUXVAL) && ARCH_ARM
unsigned long hw_cap = getauxval(AT_HWCAP);
flags |= (hw_cap & NEON_HWCAP) ? DAV1D_ARM_CPU_FLAG_NEON : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment