diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-05-23 10:10:14 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-05-23 10:10:14 +0000 |
commit | 2bd978bdb8775df95863c17006a05c35c510f89e (patch) | |
tree | 808c88157b79d726c6e45a28c1f4290b902ffc48 | |
parent | dcb9cd4b81be806150ae9dd2069283ba97a00fba (diff) | |
download | ffmpeg-2bd978bdb8775df95863c17006a05c35c510f89e.tar.gz |
* fixed contrains and avoid usage of scale index access
Originally committed as revision 566 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/i386/dsputil_mmx_avg.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/i386/dsputil_mmx_avg.h b/libavcodec/i386/dsputil_mmx_avg.h index b8132daabd..231ff265d4 100644 --- a/libavcodec/i386/dsputil_mmx_avg.h +++ b/libavcodec/i386/dsputil_mmx_avg.h @@ -105,25 +105,25 @@ static void DEF(put_pixels_y2)(UINT8 *block, const UINT8 *pixels, int line_size, ".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 |