diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-09-22 18:13:57 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-26 11:29:06 -0500 |
commit | 284ea790d89441fa1e6b2d72d3c1ed6d61972f0b (patch) | |
tree | bcfcca17dd96f1ea102ed069072abde7a57920bf /libavutil/float_dsp.c | |
parent | 1e276553886a7ca315a055c489fabe456e789e3f (diff) | |
download | ffmpeg-284ea790d89441fa1e6b2d72d3c1ed6d61972f0b.tar.gz |
dsputil: move vector_fmul_scalar() to AVFloatDSPContext in libavutil
Diffstat (limited to 'libavutil/float_dsp.c')
-rw-r--r-- | libavutil/float_dsp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/float_dsp.c b/libavutil/float_dsp.c index 2e90939090..b6b11818b5 100644 --- a/libavutil/float_dsp.c +++ b/libavutil/float_dsp.c @@ -36,10 +36,19 @@ static void vector_fmac_scalar_c(float *dst, const float *src, float mul, dst[i] += src[i] * mul; } +static void vector_fmul_scalar_c(float *dst, const float *src, float mul, + int len) +{ + int i; + for (i = 0; i < len; i++) + dst[i] = src[i] * mul; +} + void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact) { fdsp->vector_fmul = vector_fmul_c; fdsp->vector_fmac_scalar = vector_fmac_scalar_c; + fdsp->vector_fmul_scalar = vector_fmul_scalar_c; #if ARCH_ARM ff_float_dsp_init_arm(fdsp); |