[cairo] _cairo_color_compute_shorts fails with FPU set to single precision

Keith Packard keithp at keithp.com
Wed Aug 30 01:26:45 PDT 2006


On Wed, 2006-08-30 at 04:08 -0400, Behdad Esfahbod wrote:

>         int32_t i;
>         i = f * 65536.0;
>         i -= i == 65536;

Or i -= (i >> 16), which avoids the question of a branch.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060830/6c9ab05f/attachment.pgp


More information about the cairo mailing list