[cairo] _cairo_color_compute_shorts fails with FPU set to single precision

Behdad Esfahbod behdad at behdad.org
Wed Aug 30 09:13:59 PDT 2006


On Wed, 2006-08-30 at 15:52 +0000, Fabien Costantini wrote:
> ----- 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)

That doesn't really help, other than slowing it down.


> Fabien

-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"



More information about the cairo mailing list