diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-05-21 12:58:41 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-06-08 13:14:38 -0400 |
commit | d5a7229ba4aabc2b6407c731d9175879ae54c5ea (patch) | |
tree | 0596aaae9622f0f7b7e5d689b20ab3dc82f59897 /libavcodec/ppc | |
parent | 98db4e2a4e35ccc2406004216270ceaa1c6a7d00 (diff) | |
download | ffmpeg-d5a7229ba4aabc2b6407c731d9175879ae54c5ea.tar.gz |
Add a float DSP framework to libavutil
Move vector_fmul() from DSPContext to AVFloatDSPContext.
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/float_altivec.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libavcodec/ppc/float_altivec.c b/libavcodec/ppc/float_altivec.c index 6e0556ec42..5068fd4eb8 100644 --- a/libavcodec/ppc/float_altivec.c +++ b/libavcodec/ppc/float_altivec.c @@ -23,21 +23,6 @@ #include "dsputil_altivec.h" -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, 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,src1+i), zero); - vec_st(d0, 0, dst+i); - vec_st(d1, 16, dst+i); - } -} - static void vector_fmul_reverse_altivec(float *dst, const float *src0, const float *src1, int len) { @@ -124,7 +109,6 @@ static void vector_fmul_window_altivec(float *dst, const float *src0, const floa void ff_float_init_altivec(DSPContext* c, AVCodecContext *avctx) { - c->vector_fmul = vector_fmul_altivec; c->vector_fmul_reverse = vector_fmul_reverse_altivec; c->vector_fmul_add = vector_fmul_add_altivec; if(!(avctx->flags & CODEC_FLAG_BITEXACT)) { |