Commit 9254e617 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavc/atrac3plusdsp: change pow(2,x) to exp2f(x)

Much faster generation possible; but array is small so don't want to bloat
the binary.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 89189b10
......@@ -28,6 +28,7 @@
#include <math.h>
#include "libavutil/float_dsp.h"
#include "libavutil/libm.h"
#include "avcodec.h"
#include "sinewin.h"
#include "fft.h"
......@@ -107,7 +108,7 @@ av_cold void ff_atrac3p_init_wave_synth(void)
/* generate amplitude scalefactors table */
for (i = 0; i < 64; i++)
amp_sf_tab[i] = pow(2.0f, ((double)i - 3) / 4.0f);
amp_sf_tab[i] = exp2f((i - 3) / 4.0f);
}
/**
......
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