Fix for h % 8 == 4 in put_pixels_axp_asm.
authorFalk Hüffner <mellum@users.sourceforge.net>
Fri, 13 Sep 2002 15:44:53 +0000 (15:44 +0000)
committerFalk Hüffner <mellum@users.sourceforge.net>
Fri, 13 Sep 2002 15:44:53 +0000 (15:44 +0000)
Originally committed as revision 940 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/alpha/dsputil_alpha_asm.S

index 5349e44..7ec6757 100644 (file)
@@ -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
-
-        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)
+       addq    a0, a2, t4
+       addq    a1, a2, a1
+       addq    t4, a2, t5
+       subq    a3, 4, a3
 
-        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