On Wed, Aug 29, 2007 at 11:17:59PM +0000, Markus Gothe wrote: > -inline double trunc(x) ( x < 0 ? -(std::floor(-x)) : std::floor(x) ) > +inline double trunc(double x) ( x < 0 ? -(std::floor(-x)) : std::floor(x) )
There's also a truncf function for floats, I bet we're indeed using floats usually, so these functions will trigger unneeded conversion of the floats to doubles. Worth a review of the callers... --strk; _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit