CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe <nihilus> 07/08/27 11:58:47
Modified files: . : ChangeLog libbase : utility.h Log message: defined exp2() as it's missing on some BSDen. Thx to deanna for the patch. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4113&r2=1.4114 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.25&r2=1.26 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4113 retrieving revision 1.4114 diff -u -b -r1.4113 -r1.4114 --- ChangeLog 27 Aug 2007 09:56:00 -0000 1.4113 +++ ChangeLog 27 Aug 2007 11:58:46 -0000 1.4114 @@ -1,3 +1,7 @@ +2007-08-27 Markus Gothe <[EMAIL PROTECTED]> + + * libbase/utility.h: defined exp2() as it's missing on some BSDen. + 2007-08-27 Zou Lunkai <[EMAIL PROTECTED]> * testsuite/misc-ming.all/DefineEditTextVariableNameTest2.c, Index: libbase/utility.h =================================================================== RCS file: /sources/gnash/gnash/libbase/utility.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -b -r1.25 -r1.26 --- libbase/utility.h 23 Jul 2007 22:07:59 -0000 1.25 +++ libbase/utility.h 27 Aug 2007 11:58:47 -0000 1.26 @@ -114,6 +114,8 @@ const float LN_2 = 0.693147180559945f; // 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 d, double x) { return std::pow((double)d, 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 _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit