gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog libbase/utility.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog libbase/utility.h
Date: Mon, 27 Aug 2007 18:12:30 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/08/27 18:12:30

Modified files:
        .              : ChangeLog 
        libbase        : utility.h 

Log message:
                * libbase/utility.h: don't define exp2(), it's going to clash
                  with existing symbol on most systems (except some BSDen)...
                  Please provide a better patch for BSD.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4122&r2=1.4123
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.27&r2=1.28

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4122
retrieving revision 1.4123
diff -u -b -r1.4122 -r1.4123
--- ChangeLog   27 Aug 2007 17:45:31 -0000      1.4122
+++ ChangeLog   27 Aug 2007 18:12:29 -0000      1.4123
@@ -1,3 +1,9 @@
+2007-08-27 Sandro Santilli <address@hidden>
+
+       * libbase/utility.h: don't define exp2(), it's going to clash
+         with existing symbol on most systems (except some BSDen)...
+         Please provide a better patch for BSD.
+
 2007-08-27 Deanna Phillips <deanna>
 
        * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: include

Index: libbase/utility.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/utility.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- libbase/utility.h   27 Aug 2007 16:28:13 -0000      1.27
+++ libbase/utility.h   27 Aug 2007 18:12:30 -0000      1.28
@@ -115,7 +115,8 @@
 // the overridden log(f) will use logf IFF f is a float
 inline float   log2(float f) { return std::log(f) / LN_2; }
 //exp2 might be missing on Net-/OpenBSD.
-inline float   exp2(double x) { return std::pow((double)2, double(x)); }
+// TODO: check availability with a configure macro 
+//inline float exp2(double x) { return std::pow((double)2, double(x)); }
 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]