[cairo] _cairo_color_compute_shorts fails with FPU set to
single precision
Carlo Wood
carlo at alinoe.com
Wed Aug 30 04:59:35 PDT 2006
On Wed, Aug 30, 2006 at 01:26:45AM -0700, Keith Packard wrote:
> 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.
I guess next time I should first read ALL mail before replying.
--
Carlo Wood <carlo at alinoe.com>
More information about the cairo
mailing list