mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
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:
parent
056fc6250c
commit
cd1ea99f0e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user