* commit 'd45ebd4876ab8fc07736a644de07e1b1d11a8e5d':
configure: add support for neon intrinsics
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -92,6 +92,7 @@ $(foreach V,$(SUBDIR_VARS),$(eval $(call RESET,$(V)))) |
92 | 92 |
SUBDIR := $(1)/ |
93 | 93 |
include $(SRC_PATH)/$(1)/Makefile |
94 | 94 |
-include $(SRC_PATH)/$(1)/$(ARCH)/Makefile |
95 |
+-include $(SRC_PATH)/$(1)/$(INTRINSICS)/Makefile |
|
95 | 96 |
include $(SRC_PATH)/library.mak |
96 | 97 |
endef |
97 | 98 |
|
... | ... |
@@ -1647,6 +1647,10 @@ HEADERS_LIST=" |
1647 | 1647 |
winsock2_h |
1648 | 1648 |
" |
1649 | 1649 |
|
1650 |
+INTRINSICS_LIST=" |
|
1651 |
+ intrinsics_neon |
|
1652 |
+" |
|
1653 |
+ |
|
1650 | 1654 |
MATH_FUNCS=" |
1651 | 1655 |
atanf |
1652 | 1656 |
atan2f |
... | ... |
@@ -1778,6 +1782,7 @@ HAVE_LIST=" |
1778 | 1778 |
$HAVE_LIST_CMDLINE |
1779 | 1779 |
$HAVE_LIST_PUB |
1780 | 1780 |
$HEADERS_LIST |
1781 |
+ $INTRINSICS_LIST |
|
1781 | 1782 |
$MATH_FUNCS |
1782 | 1783 |
$SYSTEM_FUNCS |
1783 | 1784 |
$THREADS_LIST |
... | ... |
@@ -1941,6 +1946,7 @@ armv6_deps="arm" |
1941 | 1941 |
armv6t2_deps="arm" |
1942 | 1942 |
armv8_deps="aarch64" |
1943 | 1943 |
neon_deps_any="aarch64 arm" |
1944 |
+intrinsics_neon_deps="neon" |
|
1944 | 1945 |
vfp_deps_any="aarch64 arm" |
1945 | 1946 |
vfpv3_deps="vfp" |
1946 | 1947 |
|
... | ... |
@@ -2662,6 +2668,7 @@ else |
2662 | 2662 |
arch_default=$(uname -m) |
2663 | 2663 |
fi |
2664 | 2664 |
cpu="generic" |
2665 |
+intrinsics="none" |
|
2665 | 2666 |
|
2666 | 2667 |
# configurable options |
2667 | 2668 |
enable $PROGRAM_LIST |
... | ... |
@@ -4536,6 +4543,8 @@ EOF |
4536 | 4536 |
|
4537 | 4537 |
fi |
4538 | 4538 |
|
4539 |
+check_code cc arm_neon.h "int64x2_t test" && enable intrinsics_neon |
|
4540 |
+ |
|
4539 | 4541 |
check_ldflags -Wl,--as-needed |
4540 | 4542 |
|
4541 | 4543 |
if check_func dlopen; then |
... | ... |
@@ -5211,6 +5220,8 @@ merge_deps() { |
5211 | 5211 |
|
5212 | 5212 |
merge_deps libavfilter $FILTER_LIST |
5213 | 5213 |
|
5214 |
+map 'enabled $v && intrinsics=${v#intrinsics_}' $INTRINSICS_LIST |
|
5215 |
+ |
|
5214 | 5216 |
for thread in $THREADS_LIST; do |
5215 | 5217 |
if enabled $thread; then |
5216 | 5218 |
test -n "$thread_type" && |
... | ... |
@@ -5391,6 +5402,7 @@ SRC_PATH:=\$(SRC_PATH:.%=..%) |
5391 | 5391 |
endif |
5392 | 5392 |
CC_IDENT=$cc_ident |
5393 | 5393 |
ARCH=$arch |
5394 |
+INTRINSICS=$intrinsics |
|
5394 | 5395 |
CC=$cc |
5395 | 5396 |
CXX=$cxx |
5396 | 5397 |
AS=$as |