This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: Support infinity, NaN, and denormalized numbers in floatformat.c
- From: Paul Koning <pkoning at equallogic dot com>
- To: ian at wasabisystems dot com
- Cc: gcc-patches at gcc dot gnu dot org, gdb-patches at sources dot redhat dot com
- Date: Wed, 3 Dec 2003 13:47:11 -0500
- Subject: Re: RFA: Support infinity, NaN, and denormalized numbers in floatformat.c
- References: <20031203181245.3896.qmail@gossamer.airs.com>
>>>>> "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