changeset 6061:95ac40977cf7 libavcodec

Avoid a vec_add, directly start with sum
author lu_zero
date Sat, 22 Dec 2007 03:39:53 +0000
parents b1e3368c0d5e
children 9d1590a4df90
files ppc/h264_template_altivec.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/h264_template_altivec.c	Sat Dec 22 02:53:36 2007 +0000
+++ b/ppc/h264_template_altivec.c	Sat Dec 22 03:39:53 2007 +0000
@@ -31,11 +31,10 @@
         vsrc2ssH = (vec_s16_t)vec_mergeh(zero_u8v,(vec_u8_t)vsrc2uc);\
         vsrc3ssH = (vec_s16_t)vec_mergeh(zero_u8v,(vec_u8_t)vsrc3uc);\
 \
-        psum = vec_mladd(vA, vsrc0ssH, vec_splat_s16(0));\
+        psum = vec_mladd(vA, vsrc0ssH, v32ss);\
         psum = vec_mladd(vB, vsrc1ssH, psum);\
         psum = vec_mladd(vC, vsrc2ssH, psum);\
         psum = vec_mladd(vD, vsrc3ssH, psum);\
-        psum = vec_add(v32ss, psum);\
         psum = vec_sr(psum, v6us);\
 \
         vdst = vec_ld(0, dst);\