wish: optimize (x > 0.) floating point comparison.
N8TM@aol.com
N8TM@aol.com
Wed Sep 23 20:50:00 GMT 1998
In a message dated 9/23/98 2:37:10 PM Pacific Daylight Time,
yotam@avanticorp.com writes:
> I wonder if there are primitive FPU compare instructions with (+/- 0.0)
> with a single operand.
There have been architectures which kept the positive and zero condition flags
automatically set in accordance with the last changed floating point register,
but this doesn't seem to be too useful now that most CPU's have multiple
register pipelined operations and out-of-order execution. Architectures which
keep a "register" which always shows as containing zero provide the ability to
compare with zero without having to find a zero variable datum.
More information about the Gcc
mailing list