Re: RFA: Support infinity, NaN, and denormalized numbers in floatformat.c

Paul Koning
2003-12-03T18:47:18Z

>>>>> "Ian" == Ian Lance Taylor <ian@wasabisystems.com> writes:

Ian> Here is a patch to improve the support for infinity, NaN, and
Ian> denormalized numbers in floatformat.c. It's not clear how to
Ian> handle these for non-IEEE formats.

Depends on the specific format. For example, DEC float has NaN, but
it doesn't have infinites, and it doesn't have denormals.

And since for that format NaN is never produced as the result of
arithmetic (its only use is as a memory initialization pattern) it
would probably be reasonable enough not to define it. (If you'd want
to define it, you may have to use the hex format.)

paul