[libav-devel] [PATCH 1/2] configure: add support for neon intrinsics

Janne Grunau janne-libav at jannau.net
Tue Jun 10 22:43:33 CEST 2014


---
 configure | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configure b/configure
index 8359c68..5c21a33 100755
--- a/configure
+++ b/configure
@@ -1361,6 +1361,7 @@ HAVE_LIST_PUB="
 HEADERS_LIST="
     alsa_asoundlib_h
     altivec_h
+    arm_neon_h
     arpa_inet_h
     cdio_paranoia_h
     cdio_paranoia_paranoia_h
@@ -1477,6 +1478,7 @@ TOOLCHAIN_FEATURES="
     gnu_as
     ibm_asm
     inline_asm_labels
+    neon_intrinsics
     pragma_deprecated
     symver_asm_label
     symver_gnu_asm
@@ -1639,6 +1641,7 @@ armv6_deps="arm"
 armv6t2_deps="arm"
 armv8_deps="aarch64"
 neon_deps_any="aarch64 arm"
+neon_intrinsics_deps="arm_neon_h neon"
 vfp_deps_any="aarch64 arm"
 vfpv3_deps="vfp"
 
@@ -3900,6 +3903,11 @@ EOF
 
 fi
 
+if enabled neon ; then
+    check_header arm_neon.h
+    check_code cc arm_neon.h "int64x2_t test" && enable neon_intrinsics
+fi
+
 check_ldflags -Wl,--as-needed
 
 if check_func dlopen; then
-- 
2.0.0



More information about the libav-devel mailing list