Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make both versions of _cairo_lround consistent again
Commit c000824 made cairo use libm's lround instead of its own _cairo_lround by default. However, since commit ce58f87 from 2006, _cairo_lround does arithmetic rounding instead of away-from-zero rounding (before said commit, it was using baker's rounding). So to make the rounding of _cairo_lround be independent from DISABLE_SOME_FLOATING_POINT, we have to use another function. Turns out that _cairo_round already does the same thing that _cairo_lround does. Their only difference is the return type. Signed-off-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
- Loading branch information