Commit c5f0b6bf authored by Michael Niedermayer's avatar Michael Niedermayer

atrac3: replace powf(2,...) by exp2f()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 14de5578
......@@ -37,6 +37,7 @@
#include <stdio.h>
#include "libavutil/float_dsp.h"
#include "libavutil/libm.h"
#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
......@@ -1020,10 +1021,10 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
/* Generate gain tables. */
for (i=0 ; i<16 ; i++)
gain_tab1[i] = powf (2.0, (4 - i));
gain_tab1[i] = exp2f (4 - i);
for (i=-15 ; i<16 ; i++)
gain_tab2[i+15] = powf (2.0, i * -0.125);
gain_tab2[i+15] = exp2f (i * -0.125);
/* init the joint-stereo decoding data */
q->weighting_delay[0] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment