Commit 1f49036e authored by michael's avatar michael

read 32bit instead of 64bit to avoid overreading and missalignments


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4133 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2096e962
...@@ -70,9 +70,11 @@ static void DEF(put_pixels4_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int ...@@ -70,9 +70,11 @@ static void DEF(put_pixels4_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int
"movd (%1), %%mm0 \n\t" "movd (%1), %%mm0 \n\t"
"add %4, %1 \n\t" "add %4, %1 \n\t"
"movd (%1), %%mm1 \n\t" "movd (%1), %%mm1 \n\t"
"movd (%2), %%mm2 \n\t"
"movd 4(%2), %%mm3 \n\t"
"add %4, %1 \n\t" "add %4, %1 \n\t"
PAVGB" (%2), %%mm0 \n\t" PAVGB" %%mm2, %%mm0 \n\t"
PAVGB" 4(%2), %%mm1 \n\t" PAVGB" %%mm3, %%mm1 \n\t"
"movd %%mm0, (%3) \n\t" "movd %%mm0, (%3) \n\t"
"add %5, %3 \n\t" "add %5, %3 \n\t"
"movd %%mm1, (%3) \n\t" "movd %%mm1, (%3) \n\t"
...@@ -80,9 +82,11 @@ static void DEF(put_pixels4_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int ...@@ -80,9 +82,11 @@ static void DEF(put_pixels4_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int
"movd (%1), %%mm0 \n\t" "movd (%1), %%mm0 \n\t"
"add %4, %1 \n\t" "add %4, %1 \n\t"
"movd (%1), %%mm1 \n\t" "movd (%1), %%mm1 \n\t"
"movd 8(%2), %%mm2 \n\t"
"movd 12(%2), %%mm3 \n\t"
"add %4, %1 \n\t" "add %4, %1 \n\t"
PAVGB" 8(%2), %%mm0 \n\t" PAVGB" %%mm2, %%mm0 \n\t"
PAVGB" 12(%2), %%mm1 \n\t" PAVGB" %%mm3, %%mm1 \n\t"
"movd %%mm0, (%3) \n\t" "movd %%mm0, (%3) \n\t"
"add %5, %3 \n\t" "add %5, %3 \n\t"
"movd %%mm1, (%3) \n\t" "movd %%mm1, (%3) \n\t"
......
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