gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog libbase/container.h libbase/uti...


From: Markus Gothe
Subject: [Gnash-commit] gnash ChangeLog libbase/container.h libbase/uti...
Date: Mon, 12 Feb 2007 01:32:46 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  07/02/12 01:32:46

Modified files:
        .              : ChangeLog 
        libbase        : container.h utility.h 

Log message:
        Note on log2

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2318&r2=1.2319
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/container.h?cvsroot=gnash&r1=1.50&r2=1.51
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.20&r2=1.21

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2318
retrieving revision 1.2319
diff -u -b -r1.2318 -r1.2319
--- ChangeLog   12 Feb 2007 01:23:17 -0000      1.2318
+++ ChangeLog   12 Feb 2007 01:32:46 -0000      1.2319
@@ -1,6 +1,6 @@
 2007-02-12 Markus Gothe <address@hidden>
 
-       * libbase/container.h: log2->std::log2  
+       * libbase/utility.h: Added note on log2 
 
 2007-02-11 Deanna Phillips <deanna>
 

Index: libbase/container.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/container.h,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -b -r1.50 -r1.51
--- libbase/container.h 12 Feb 2007 01:23:17 -0000      1.50
+++ libbase/container.h 12 Feb 2007 01:32:46 -0000      1.51
@@ -14,7 +14,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-/* $Id: container.h,v 1.50 2007/02/12 01:23:17 nihilus Exp $ */
+/* $Id: container.h,v 1.51 2007/02/12 01:32:46 nihilus Exp $ */
 
 #ifndef __CONTAINER_H__
 #define __CONTAINER_H__
@@ -584,7 +584,7 @@
                }
 
                // Force new_size to be a power of two.
-               int     bits = fchop(std::log2((float)(new_size-1)) + 1);
+               int     bits = fchop(log2((float)(new_size-1)) + 1);
                assert((1 << bits) >= new_size);
 
                new_size = 1 << bits;

Index: libbase/utility.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/utility.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- libbase/utility.h   11 Feb 2007 00:22:22 -0000      1.20
+++ libbase/utility.h   12 Feb 2007 01:32:46 -0000      1.21
@@ -91,8 +91,9 @@
 
 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; }
+//This is from C99.
+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]