CVSROOT: /sources/gnash Module name: gnash Branch: release_0_8_1 Changes by: Markus Gothe <nihilus> 07/08/27 12:03:14
Modified files: . : ChangeLog libbase : utility.h Log message: defined exp2() as it's missing on some BSDen. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.3971.2.62&r2=1.3971.2.63 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.25&r2=1.25.2.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3971.2.62 retrieving revision 1.3971.2.63 diff -u -b -r1.3971.2.62 -r1.3971.2.63 --- ChangeLog 24 Aug 2007 15:50:02 -0000 1.3971.2.62 +++ ChangeLog 27 Aug 2007 12:03:13 -0000 1.3971.2.63 @@ -1,3 +1,7 @@ +2007-08-27 Deanna Philips <deanna> + + * libbase/utility.h: defined exp2() as it's missing on some BSDen. + 2007-08-24 Miriam Ruiz <[EMAIL PROTECTED]> * plugin/klash/klash_part.cpp: Patch for GNASHEXE. Index: libbase/utility.h =================================================================== RCS file: /sources/gnash/gnash/libbase/utility.h,v retrieving revision 1.25 retrieving revision 1.25.2.1 diff -u -b -r1.25 -r1.25.2.1 --- libbase/utility.h 23 Jul 2007 22:07:59 -0000 1.25 +++ libbase/utility.h 27 Aug 2007 12:03:14 -0000 1.25.2.1 @@ -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