[cairo-commit] src/cairo-misc.c

Jeff Muizelaar jrmuizel at kemper.freedesktop.org
Wed Feb 4 11:11:32 PST 2009


 src/cairo-misc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 83ec4b16b7b9a27439fee2d84c50e30a1ec2d68c
Author: Jeff Muizelaar <jmuizelaar at mozilla.com>
Date:   Wed Feb 4 14:04:05 2009 -0500

    Elaborate the meaning of arithmetic rounding as done by _cairo_lround()

diff --git a/src/cairo-misc.c b/src/cairo-misc.c
index 729e6d5..2ed1413 100644
--- a/src/cairo-misc.c
+++ b/src/cairo-misc.c
@@ -394,7 +394,7 @@ _cairo_restrict_value (double *value, double min, double max)
 }
 
 /* This function is identical to the C99 function lround(), except that it
- * performs arithmetic rounding (instead of away-from-zero rounding) and
+ * performs arithmetic rounding (floor(d + .5) instead of away-from-zero rounding) and
  * has a valid input range of (INT_MIN, INT_MAX] instead of
  * [INT_MIN, INT_MAX]. It is much faster on both x86 and FPU-less systems
  * than other commonly used methods for rounding (lround, round, rint, lrint


More information about the cairo-commit mailing list