changeset 4387:05ab6e897ffd libavcodec

10l, there is a corner case afterall...
author lu_zero
date Tue, 23 Jan 2007 12:04:48 +0000
parents 09849d8689d6
children 3451831c6962
files ppc/float_altivec.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/float_altivec.c	Mon Jan 22 22:27:02 2007 +0000
+++ b/ppc/float_altivec.c	Tue Jan 23 12:04:48 2007 +0000
@@ -76,7 +76,6 @@
     vector unsigned char align = vec_lvsr(0,dst),
                          mask = vec_lvsl(0, dst);
 
-    t0 = vec_ld(0, dst);
 #if 0 //FIXME: there is still something wrong
     if (step == 2) {
         int y;
@@ -134,6 +133,7 @@
     #endif
     if (step == 1 && src3 == 0)
         for (i=0; i<len-3; i+=4) {
+            t0 = vec_ld(0, dst+i);
             t1 = vec_ld(15, dst+i);
             s0 = vec_ld(0, src0+i);
             s1 = vec_ld(0, src1+i);
@@ -144,7 +144,6 @@
             t0 = vec_perm(edges, d, align);
             vec_st(t1, 15, dst+i);
             vec_st(t0, 0, dst+i);
-            t0 = t1;
         }
     else
         ff_vector_fmul_add_add_c(dst, src0, src1, src2, src3, len, step);