diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-01-13 15:28:06 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-23 19:32:08 +0100 |
commit | 015f9f1ad379745fe02ba219a83c406fdeaf37be (patch) | |
tree | 77e942562738c7278d3f40ebccaadc2740f8e317 /libavcodec/ppc | |
parent | fb397b1a193f15b5c104fc14caf49ded50ccf354 (diff) | |
download | ffmpeg-015f9f1ad379745fe02ba219a83c406fdeaf37be.tar.gz |
Change DSPContext.vector_fmul() from dst=dst*src to dest=src0*src1.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 6eabb0d3ad42b91c1b4c298718c29961f7c1653a)
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/float_altivec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/ppc/float_altivec.c b/libavcodec/ppc/float_altivec.c index d1f9f1ade3..188e03ea2d 100644 --- a/libavcodec/ppc/float_altivec.c +++ b/libavcodec/ppc/float_altivec.c @@ -23,16 +23,16 @@ #include "dsputil_altivec.h" #include "util_altivec.h" -static void vector_fmul_altivec(float *dst, const float *src, int len) +static void vector_fmul_altivec(float *dst, const float *src0, const float *src1, int len) { int i; vector float d0, d1, s, zero = (vector float)vec_splat_u32(0); for(i=0; i<len-7; i+=8) { - d0 = vec_ld(0, dst+i); - s = vec_ld(0, src+i); - d1 = vec_ld(16, dst+i); + d0 = vec_ld(0, src0+i); + s = vec_ld(0, src1+i); + d1 = vec_ld(16, src0+i); d0 = vec_madd(d0, s, zero); - d1 = vec_madd(d1, vec_ld(16,src+i), zero); + d1 = vec_madd(d1, vec_ld(16,src1+i), zero); vec_st(d0, 0, dst+i); vec_st(d1, 16, dst+i); } |