aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-02-11 11:16:00 +0000
committerDiego Biurrun <diego@biurrun.de>2009-02-11 11:16:00 +0000
commitd3a4b4e09c049e20edc862a933d707e36b6232c1 (patch)
tree2f0cc5c52d053691a5a0a324fec0ba945abdd076 /configure
parent80e58c6153249a40e47a20326b7626cbe0fcabd3 (diff)
downloadffmpeg-d3a4b4e09c049e20edc862a933d707e36b6232c1.tar.gz
Add check whether the compiler/assembler supports 10 or more operands.
thanks to Loren for some help with the asm statements Originally committed as revision 17151 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index dc51fa592d..210c575df0 100755
--- a/configure
+++ b/configure
@@ -898,6 +898,7 @@ HAVE_LIST="
sys_select_h
sys_soundcard_h
sys_videoio_h
+ ten_operands
termios_h
threads
truncf
@@ -1778,6 +1779,18 @@ EOF
# check wether EBX is available on x86
check_asm ebx_available '"":::"%ebx"'
+ # check whether more than 10 operands are supported
+ check_cc <<EOF && enable ten_operands
+int main(void) {
+ int x=0;
+ __asm__ volatile(
+ ""
+ :"+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x)
+ );
+ return 0;
+}
+EOF
+
# check whether binutils is new enough to compile SSSE3/MMX2
enabled ssse3 && check_asm ssse3 '"pabsw %xmm0, %xmm0"'
enabled mmx2 && check_asm mmx2 '"movss %xmm0, %xmm0"'
@@ -2190,6 +2203,7 @@ if enabled x86; then
echo "CMOV is fast ${fast_cmov-no}"
echo "EBX available ${ebx_available-no}"
echo "EBP available ${ebp_available-no}"
+ echo "10 operands supported ${ten_operands-no}"
fi
if enabled arm; then
echo "ARMv5TE enabled ${armv5te-no}"