[cairo] _cairo_color_compute_shorts fails with FPU set to single precision

James Cloos cloos at jhcloos.com
Wed Aug 30 07:56:24 PDT 2006

>>>>> "Keith" == Keith Packard <keithp at keithp.com> writes:

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

What about when the float is > 1.0?

Shouldn't cairo explicitly support hdr whenever it is using floats?

And, incidently, does C guarantee that (uint32_t) some_float_or_double
will be 0 if some_float_or_double is negative?  I suspect so, but don't
have any books at hand....

James Cloos <cloos at jhcloos.com>         OpenPGP: 0xED7DAEA6

More information about the cairo mailing list