MT32: Replace OS X specific exp2f call with exp2.

Suggested by clone2727 to fix the build, since buildbot's ppc
headers don't have exp2f.
This commit is contained in:
Alyssa Milburn 2012-02-11 22:41:16 +01:00
parent 056fc6250c
commit cd1ea99f0e

View File

@ -46,7 +46,7 @@ static inline float EXPF(float x) {
static inline float EXP2F(float x) {
#ifdef __APPLE__
// on OSX exp2f() is 1.59 times faster than "exp() and the multiplication with FLOAT_LN_2"
return exp2f(x);
return exp2(x);
#else
return exp(FLOAT_LN_2 * x);
#endif