gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libbase utility.h


From: Markus Gothe
Subject: [Gnash-commit] gnash/libbase utility.h
Date: Sun, 11 Feb 2007 00:22:22 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  07/02/11 00:22:22

Modified files:
        libbase        : utility.h 

Log message:
        Why God, why define ANSI C log2 here?

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.19&r2=1.20

Patches:
Index: utility.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/utility.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- utility.h   10 Feb 2007 18:23:48 -0000      1.19
+++ utility.h   11 Feb 2007 00:22:22 -0000      1.20
@@ -91,8 +91,8 @@
 
 inline float flerp(float a, float b, float f) { return (b - a) * f + a; }
 
-const float LN_2 = 0.693147180559945f;
-inline float   log2(float f) { return std::logf(f) / LN_2; }
+//const float LN_2 = 0.693147180559945f;
+//inline float log2(float f) { return std::logf(f) / LN_2; }
 inline int     fchop( float f ) { return (int) f; }    // replace w/ inline 
asm if desired
 inline int     frnd(float f) { return fchop(f + 0.5f); }       // replace with 
inline asm if desired
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]