[cairo] Patches for speeding up _cairo_fixed_from_double
behdad at behdad.org
Thu Nov 16 15:37:48 PST 2006
On Thu, 2006-11-16 at 15:31 -0800, Daniel Amelang wrote:
> The required change is to replace PANGO_UNITS in pangocairo-fc-font.c
> with an inline function almost identical to the new
> _cairo_fixed_from_double function. This significantly speeds up
> compute_glyph_extents, which accounts for all the __muldf3 found here
> (third function down):
Makes me wonder, should we export this function in a header file or
something? In glib maybe? As an inline or static, donno. Anyway.
I hope that doesn't corrupt the rounding behavior. There used to be a
bug around there that I fixed.
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
More information about the cairo