diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2007-12-22 03:39:53 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2007-12-22 03:39:53 +0000 |
commit | 8d8d178dad96d4dbf10cd18167ef14f61303580c (patch) | |
tree | 38dfe7c58362c0cee5774f23940334f1269bde74 /libavcodec/ppc | |
parent | c7f66add4cfd6e8aacd5855b2e3909e4baa0f1bf (diff) | |
download | ffmpeg-8d8d178dad96d4dbf10cd18167ef14f61303580c.tar.gz |
Avoid a vec_add, directly start with sum
Originally committed as revision 11302 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/h264_template_altivec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ppc/h264_template_altivec.c b/libavcodec/ppc/h264_template_altivec.c index 9d1e801ecb..93df3c4c60 100644 --- a/libavcodec/ppc/h264_template_altivec.c +++ b/libavcodec/ppc/h264_template_altivec.c @@ -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);\ |