]> git.sesse.net Git - ffmpeg/commitdiff
fix scalarproduct_and_madd_int16_altivec() for orders > 16
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 24 May 2013 17:44:29 +0000 (19:44 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 26 May 2013 14:10:47 +0000 (16:10 +0200)
the second and third sources were incremented only by half of the needed size

libavcodec/ppc/int_altivec.c

index 67d119c47390dd21ab0ca130e856e38c8b89237e..8357ca768b1cd0a405f96b3b905e16c7e7b50b02 100644 (file)
@@ -129,8 +129,8 @@ static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1, const int16_t *
         pv1[0] = vec_mladd(t0, muls, i0);
         pv1[1] = vec_mladd(t1, muls, i1);
         pv1 += 2;
-        v2  += 8;
-        v3  += 8;
+        v2  += 16;
+        v3  += 16;
     } while(--order);
     res = vec_splat(vec_sums(res, zero_s32v), 3);
     vec_ste(res, 0, &ires);