diff options
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-04 14:04:05 -0500 |
---|---|---|
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-04 14:04:05 -0500 |
commit | 83ec4b16b7b9a27439fee2d84c50e30a1ec2d68c (patch) | |
tree | 0766abc51754a9d1330e9f753b578d1b012bc545 /src/cairo-misc.c | |
parent | 2676b3bdd6fbeef62d34c100718f76fe5bbe647d (diff) | |
download | cairo-83ec4b16b7b9a27439fee2d84c50e30a1ec2d68c.tar.gz |
Elaborate the meaning of arithmetic rounding as done by _cairo_lround()
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r-- | src/cairo-misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c index 729e6d539..2ed141394 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 |