Commit 2bd978bd authored by Zdenek Kabelac's avatar Zdenek Kabelac

* fixed contrains and avoid usage of scale index access

Originally committed as revision 566 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent dcb9cd4b
...@@ -105,25 +105,25 @@ static void DEF(put_pixels_y2)(UINT8 *block, const UINT8 *pixels, int line_size, ...@@ -105,25 +105,25 @@ static void DEF(put_pixels_y2)(UINT8 *block, const UINT8 *pixels, int line_size,
".balign 16 \n\t" ".balign 16 \n\t"
"1: \n\t" "1: \n\t"
"movq (%1, %3), %%mm1 \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" %%mm1, %%mm0 \n\t"
PAVGB" %%mm2, %%mm1 \n\t" PAVGB" %%mm2, %%mm1 \n\t"
"addl %%eax, %1 \n\t" "addl %%eax, %1 \n\t"
"movq %%mm0, (%2, %3) \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), %%mm1 \n\t"
"movq (%1, %3, 2), %%mm0 \n\t" "movq (%1, %%eax), %%mm0 \n\t"
PAVGB" %%mm1, %%mm2 \n\t" PAVGB" %%mm1, %%mm2 \n\t"
PAVGB" %%mm0, %%mm1 \n\t" PAVGB" %%mm0, %%mm1 \n\t"
"addl %%eax, %2 \n\t" "addl %%eax, %2 \n\t"
"addl %%eax, %1 \n\t" "addl %%eax, %1 \n\t"
"movq %%mm2, (%2, %3) \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" "addl %%eax, %2 \n\t"
"subl $4, %0 \n\t" "subl $4, %0 \n\t"
"jnz 1b \n\t" "jnz 1b \n\t"
:"+g"(h) :"+g"(h), "+D"(pixels), "+S" (block)
:"D"(pixels), "S" (block), "c"(line_size) :"c"(line_size)
:"%eax", "memory"); :"%eax", "memory");
#else #else
// kabi measure me // kabi measure me
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment