[cairo] _cairo_color_compute_shorts fails with FPU set to single precision

Fabien Costantini fab672000 at yahoo.fr
Wed Aug 30 08:52:05 PDT 2006


----- Message d'origine ----
De : James Cloos <cloos at jhcloos.com>
À : cairo <cairo at cairographics.org>

>>Keith> Or i -= (i >> 16), which avoids the question of a branch.
>What about when the float is > 1.0?

Then if you want to be really sure , just add a simple mask as following:
i -= ((i >> 16) & 1)



Fabien

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/cairo/attachments/20060830/465bf99c/attachment.html


More information about the cairo mailing list