# HG changeset patch # User diego # Date 1234350960 0 # Node ID a5c8210814d73fe43fedaddd36e95036d0b3d7e4 # Parent 530309ea02d8cda875eeff510aac19f55b16fe9e Add check whether the compiler/assembler supports 10 or more operands. thanks to Loren for some help with the asm statements diff -r 530309ea02d8 -r a5c8210814d7 x86/dsputil_mmx.c --- 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