[cairo] Patch: speeding up _cairo_fixed_from_double

Carl Worth cworth at cworth.org
Thu Oct 27 20:39:39 PDT 2005


On Wed, 05 Oct 2005 11:50:51 -0700, Bill Spitzak wrote:
> I also posted the same thing some time ago, not sure what happened to 
> that as I never got any response. My code uses the exact same trick (and 
> I'm sure shares the same original source). The only difference is that I 
> also made a fast test to see if the conversion is out of range that may 
> be useful. In our software using similar code to replace float->int the 
> speedup is considerable, like the 25% Tim Rowley claims.

There's been a recent, related discussion within bugzilla that I'd
like to draw to the attention of interested readers.

Rather than trying to summarize the discussion, I'll just link to the
bug report:

	https://bugs.freedesktop.org/show_bug.cgi?id=4846

[I wish there were an easier means of merging related mailing-list and
bugzilla threads like this, but this will have to do for now I guess.]

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20051027/aa2e8a07/attachment.pgp


More information about the cairo mailing list