summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-15 17:10:07 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-15 17:10:07 +0000
commita57afd2943a4c222c1575abd8707120c80267be9 (patch)
tree1db47c8c7f5097f4942c5902f2c492ccbdb0b33e /libavcodec/mpegaudiodec.c
parente8b785411e067df7bb5d39fd2d1007d72b7f2a9a (diff)
Partially revert r20233, exp2f is not available on some BSDs, DOS and AVR32.
Originally committed as revision 20240 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index e531fd37d8..47c22791bb 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -411,7 +411,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
double value = i/4;
double f, fm;
int e, m;
- f = value * cbrtf(value) * exp2f((i&3)*0.25);
+ f = value * cbrtf(value) * pow(2, (i&3)*0.25);
fm = frexp(f, &e);
m = (uint32_t)(fm*(1LL<<31) + 0.5);
e+= FRAC_BITS - 31 + 5 - 100;
@@ -423,7 +423,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
for(i=0; i<512*16; i++){
double value = i & 15;
int exponent= (i>>4);
- double f= value * cbrtf(value) * exp2f((exponent-400)*0.25 + FRAC_BITS + 5);
+ double f= value * cbrtf(value) * pow(2, (exponent-400)*0.25 + FRAC_BITS + 5);
expval_table[exponent][i&15]= llrint(f);
if((i&15)==1)
exp_table[exponent]= llrint(f);