From 60286c8a374aa20073a0c99810576df323c7af9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Falk=20H=C3=BCffner?= Date: Fri, 13 Sep 2002 15:44:53 +0000 Subject: [PATCH] Fix for h % 8 == 4 in put_pixels_axp_asm. Originally committed as revision 940 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/alpha/dsputil_alpha_asm.S | 44 ++++++++-------------------- 1 file changed, 12 insertions(+), 32 deletions(-) diff --git a/libavcodec/alpha/dsputil_alpha_asm.S b/libavcodec/alpha/dsputil_alpha_asm.S index 5349e443cd..7ec6757d75 100644 --- a/libavcodec/alpha/dsputil_alpha_asm.S +++ b/libavcodec/alpha/dsputil_alpha_asm.S @@ -122,41 +122,21 @@ $aligned: ldq t2, 0(a1) addq a1, a2, a1 ldq t3, 0(a1) - addq a1, a2, a1 - ldq t4, 0(a1) - addq a1, a2, a1 - ldq t5, 0(a1) - addq a1, a2, a1 + addq a0, a2, t4 + addq a1, a2, a1 + addq t4, a2, t5 + subq a3, 4, a3 - ldq t6, 0(a1) - addq a1, a2, a1 - ldq t7, 0(a1) - addq a1, a2, a1 - - addq a0, a2, t8 - stq t0, 0(a0) - addq t8, a2, t9 - stq t1, 0(t8) - - addq t9, a2, ta - stq t2, 0(t9) - addq ta, a2, tb - stq t3, 0(ta) - - addq tb, a2, tc - stq t4, 0(tb) - addq tc, a2, td - stq t5, 0(tc) - - addq td, a2, te - stq t6, 0(td) - addq te, a2, a0 - stq t7, 0(te) - - subq a3, 8, a3 - bne a3, $aligned + stq t0, 0(a0) + addq t5, a2, t6 + stq t1, 0(t4) + addq t6, a2, a0 + stq t2, 0(t5) + stq t3, 0(t6) + + bne a3, $aligned ret .end put_pixels_axp_asm