[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash/libbase utility.h
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash/libbase utility.h |
Date: |
Thu, 30 Aug 2007 02:18:31 +0200 |
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;