This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: wish: optimize (x > 0.) floating point comparison.
- To: Yotam Medini <yotam at avanticorp dot com>, rlk at tiac dot net
- Subject: Re: wish: optimize (x > 0.) floating point comparison.
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 23 Sep 1998 21:29:11 -0700
- Cc: egcs at cygnus dot com
- References: <199809231557.IAA18975@telaviv.avanticorp.com>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Wed, Sep 23, 1998 at 08:57:09AM -0700, Yotam Medini wrote:
> Now that I realized how much I lack knowledge of FPU issues,
> I wonder if there are primitive FPU compare instructions with (+/- 0.0)
> with a single operand.
No, but zero will be held in a register as needed; fcmp
really is the fastest way to do this operation.
r~