Mercurial > libavcodec.hg
diff ac3dec.c @ 7564:7cf793954871 libavcodec
simd int->float
20% faster ac3 if downmixing, 15% if not
| author | lorenm |
|---|---|
| date | Wed, 13 Aug 2008 23:35:40 +0000 |
| parents | 8390efaa0c03 |
| children | cd6217c9ce92 |
line wrap: on
line diff
--- a/ac3dec.c Wed Aug 13 23:33:48 2008 +0000 +++ b/ac3dec.c Wed Aug 13 23:35:40 2008 +0000 @@ -994,9 +994,7 @@ } else { gain *= s->dynamic_range[0]; } - for(i=0; i<256; i++) { - s->transform_coeffs[ch][i] = s->fixed_coeffs[ch][i] * gain; - } + s->dsp.int32_to_float_fmul_scalar(s->transform_coeffs[ch], s->fixed_coeffs[ch], gain, 256); } /* downmix and MDCT. order depends on whether block switching is used for
