This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: /internet
- To: law at cygnus dot com
- Subject: Re: /internet
- From: Per Bothner <bothner at cygnus dot com>
- Date: Wed, 16 Dec 1998 16:55:56 -0800
- cc: egcs at cygnus dot com
> The rules for FP are different becuase it's not 100% certain that the
> results after reassociation will be the same as before reassociation. Though
> I believe in the case reassociating a series of multiplies we are safe.
How about:
x = "semi-Infinity"; /* something that when squared will overflow */
(x * x) * (1/x) /* +Infinity */
x * (x * (1/x)) == x * 1.0 (approximately) == x;
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner