# HG changeset patch # User kabi # Date 1022148614 0 # Node ID ca1f2c0e44ef6a8c874aab9708d2981d03140d60 # Parent 1c3f42442fba2089e785372e6536c1196db46fce * fixed contrains and avoid usage of scale index access diff -r 1c3f42442fba -r ca1f2c0e44ef i386/dsputil_mmx_avg.h --- a/i386/dsputil_mmx_avg.h Thu May 23 10:09:33 2002 +0000 +++ b/i386/dsputil_mmx_avg.h Thu May 23 10:10:14 2002 +0000 @@ -105,25 +105,25 @@ ".balign 16 \n\t" "1: \n\t" "movq (%1, %3), %%mm1 \n\t" - "movq (%1, %3, 2), %%mm2 \n\t" + "movq (%1, %%eax), %%mm2 \n\t" PAVGB" %%mm1, %%mm0 \n\t" PAVGB" %%mm2, %%mm1 \n\t" "addl %%eax, %1 \n\t" "movq %%mm0, (%2, %3) \n\t" - "movq %%mm1, (%2, %3, 2) \n\t" + "movq %%mm1, (%2, %%eax) \n\t" "movq (%1, %3), %%mm1 \n\t" - "movq (%1, %3, 2), %%mm0 \n\t" + "movq (%1, %%eax), %%mm0 \n\t" PAVGB" %%mm1, %%mm2 \n\t" PAVGB" %%mm0, %%mm1 \n\t" "addl %%eax, %2 \n\t" "addl %%eax, %1 \n\t" "movq %%mm2, (%2, %3) \n\t" - "movq %%mm1, (%2, %3, 2) \n\t" + "movq %%mm1, (%2, %%eax) \n\t" "addl %%eax, %2 \n\t" "subl $4, %0 \n\t" "jnz 1b \n\t" - :"+g"(h) - :"D"(pixels), "S" (block), "c"(line_size) + :"+g"(h), "+D"(pixels), "+S" (block) + :"c"(line_size) :"%eax", "memory"); #else // kabi measure me