#include <stdio.h>
#include "libavutil/float_dsp.h"
+#include "libavutil/libm.h"
#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
/* 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;