[Scummvm-cvs-logs] scummvm master -> cd1ea99f0e77a8e9404f2d51d6810345a8a28c41

fuzzie fuzzie at fuzzie.org
Sat Feb 11 22:43:29 CET 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
cd1ea99f0e MT32: Replace OS X specific exp2f call with exp2.


Commit: cd1ea99f0e77a8e9404f2d51d6810345a8a28c41
    https://github.com/scummvm/scummvm/commit/cd1ea99f0e77a8e9404f2d51d6810345a8a28c41
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2012-02-11T13:41:21-08:00

Commit Message:
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.

Changed paths:
    audio/softsynth/mt32/mmath.h



diff --git a/audio/softsynth/mt32/mmath.h b/audio/softsynth/mt32/mmath.h
index 60f492f..226d73e 100644
--- a/audio/softsynth/mt32/mmath.h
+++ b/audio/softsynth/mt32/mmath.h
@@ -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






More information about the Scummvm-git-logs mailing list