diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-10 22:34:18 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-10 22:34:18 +0200 |
commit | 76fac0733436943db58bac8ac61b68b227e60df3 (patch) | |
tree | d90248c5b3e192f565e54d1a82f6b481344d5f9d /libavcodec/mpegaudiodec.c | |
parent | c5f0b6bf410ca9921cf61627ed1cba38d09b0725 (diff) | |
download | ffmpeg-76fac0733436943db58bac8ac61b68b227e60df3.tar.gz |
mpegaudiodec: replace pow(2.0,...) by exp2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 85079761df..2393da7c04 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -26,6 +26,7 @@ #include "libavutil/audioconvert.h" #include "libavutil/avassert.h" +#include "libavutil/libm.h" #include "avcodec.h" #include "get_bits.h" #include "mathops.h" @@ -394,7 +395,7 @@ static av_cold void decode_init_static(void) for (j = 0; j < 2; j++) { e = -(j + 1) * ((i + 1) >> 1); - f = pow(2.0, e / 4.0); + f = exp2(e / 4.0); k = i & 1; is_table_lsf[j][k ^ 1][i] = FIXR(f); is_table_lsf[j][k ][i] = FIXR(1.0); |