From b57c1da81e4f9d46af6ad9f69e6e2255d5b8aaff Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Wed, 5 Dec 2012 02:11:22 +0000 Subject: arm: detect cpu features at runtime on Linux This allows compiling optimised functions for features not enabled in the core build and selecting these at runtime if the system has the necessary support. Signed-off-by: Mans Rullgard --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 62f3f0ba67..bf809c6f93 100755 --- a/configure +++ b/configure @@ -3161,7 +3161,9 @@ EOF enabled vfp && check_insn vfp 'fadds s0, s0, s0' enabled vfpv3 && check_insn vfpv3 'vmov.f32 s0, #1.0' - map 'enabled_any ${v}_external ${v}_inline || disable $v' $ARCH_EXT_LIST_ARM + [ $target_os = linux ] || + map 'enabled_any ${v}_external ${v}_inline || disable $v' \ + $ARCH_EXT_LIST_ARM check_inline_asm asm_mod_q '"add r0, %Q0, %R0" :: "r"((long long)0)' check_inline_asm asm_mod_y '"vmul.i32 d0, d0, %y0" :: "x"(0)' -- cgit v1.2.3