This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: /internet


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]