diff x86/dsputil_mmx.c @ 8798:a5c8210814d7 libavcodec

Add check whether the compiler/assembler supports 10 or more operands. thanks to Loren for some help with the asm statements
author diego
date Wed, 11 Feb 2009 11:16:00 +0000
parents 31138c296ac6
children 53f9f3994ec8
line wrap: on
line diff
--- a/x86/dsputil_mmx.c	Wed Feb 11 06:03:18 2009 +0000
+++ b/x86/dsputil_mmx.c	Wed Feb 11 11:16:00 2009 +0000
@@ -548,7 +548,7 @@
         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 @@
 #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