This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: don't try to compare IEEE NaN's
- To: Michael Snyder <msnyder at cygnus dot com>
- Subject: Re: RFA: don't try to compare IEEE NaN's
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Thu, 7 Jun 2001 09:20:52 +0300 (IDT)
- cc: Jim Blandy <jimb at cygnus dot com>, gdb-patches at sources dot redhat dot com
On Wed, 6 Jun 2001, Michael Snyder wrote:
> BTW, the reason for using a union as I did,
> rather than individual char, short, int etc. variables, was to
> make sure that the known bit pattern was actually larger than
> the type being tested -- so that we would know if, for instance,
> GDB was testing more bits than it should.
So it sounds like my guess was right: you did want to be able to
detect variations in even a single bit. I think this cannot be done
reliably with a literal FP constant, because the compiler and inherent
FP inaccuracies get in the way.