[cairo] _cairo_color_compute_shorts fails with FPU set to
single precision
Behdad Esfahbod
behdad at behdad.org
Wed Aug 30 01:26:38 PDT 2006
On Wed, 2006-08-30 at 10:11 +0200, Alexander Larsson wrote:
> On Wed, 2006-08-30 at 04:08 -0400, Behdad Esfahbod wrote:
> >
> > cmpl $65536, %eax
> > sete %dl
> > subl %edx, %eax
>
> Ah. I'm not sure all cpu architectures can set a register (to 1 or 0
> only) on a compare like this. Don't some just set a flag as a result of
> the compare, and then you can branch based on the flag?
Yes, but the sete instruction is loading that flag in dl and since edx
was zeroed already, that means edx is the boolean value now.
--
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