From 724d7ef1018f2f0195c57da54f1b054787bbcaa7 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 19 Jul 2011 07:35:40 -0400 Subject: VIDEO: Use C++ versions of exp/ldexp Should fix compilation on Mac PPC, and MinGW32 on buildbot --- video/bink_decoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp index cebda72a76..226f81c0c6 100644 --- a/video/bink_decoder.cpp +++ b/video/bink_decoder.cpp @@ -1404,7 +1404,7 @@ void BinkDecoder::readResidue(VideoFrame &video, int16 *block, int masksCount) { float BinkDecoder::getFloat(AudioTrack &audio) { int power = audio.bits->getBits(5); - float f = ldexpf(audio.bits->getBits(23), power - 23); + float f = ldexp((float)audio.bits->getBits(23), power - 23); if (audio.bits->getBit()) f = -f; @@ -1478,8 +1478,8 @@ void BinkDecoder::readAudioCoeffs(AudioTrack &audio, float *coeffs) { for (uint32 i = 0; i < audio.bandCount; i++) { int value = audio.bits->getBits(8); - // 0.066399999 / log10(M_E) - quant[i] = expf(MIN(value, 95) * 0.15289164787221953823f) * audio.root; + // 0.066399999 / log10(M_E) + quant[i] = exp(MIN(value, 95) * 0.15289164787221953823f) * audio.root; } float q = 0.0; -- cgit v1.2.3