shithub: dav1d

Download patch

ref: 65305637d762398c43175baf34348f8c7620f9a1
parent: a2bda8844ff8c9758f4c8af6bd16c547393d7b34
author: Jan Beich <[email protected]>
date: Mon Dec 17 15:18:28 EST 2018

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().

--- a/src/arm/cpu.c
+++ b/src/arm/cpu.c
@@ -72,6 +72,8 @@
     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;