diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-02-11 11:16:00 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-02-11 11:16:00 +0000 |
commit | d3a4b4e09c049e20edc862a933d707e36b6232c1 (patch) | |
tree | 2f0cc5c52d053691a5a0a324fec0ba945abdd076 /libavcodec | |
parent | 80e58c6153249a40e47a20326b7626cbe0fcabd3 (diff) | |
download | ffmpeg-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 'libavcodec')
-rw-r--r-- | libavcodec/x86/dsputil_mmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c index 0cab053c4e..bb8b6925d2 100644 --- a/libavcodec/x86/dsputil_mmx.c +++ b/libavcodec/x86/dsputil_mmx.c @@ -548,7 +548,7 @@ static void add_bytes_l2_mmx(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w){ dst[i] = src1[i] + src2[i]; } -#if HAVE_7REGS +#if HAVE_7REGS && HAVE_TEN_OPERANDS static void add_hfyu_median_prediction_cmov(uint8_t *dst, uint8_t *top, uint8_t *diff, int w, int *left, int *left_top) { x86_reg w2 = -w; x86_reg x; @@ -2799,7 +2799,7 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) #if HAVE_YASM c->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 |