From d3a4b4e09c049e20edc862a933d707e36b6232c1 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 11 Feb 2009 11:16:00 +0000 Subject: [PATCH] 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 --- configure | 14 ++++++++++++++ libavcodec/x86/dsputil_mmx.c | 4 ++-- 2 files changed, 16 insertions(+), 2 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 <add_hfyu_median_prediction = ff_add_hfyu_median_prediction_mmx2; #endif -#if HAVE_7REGS +#if HAVE_7REGS && HAVE_TEN_OPERANDS if( mm_flags&FF_MM_3DNOW ) c->add_hfyu_median_prediction = add_hfyu_median_prediction_cmov; #endif