From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: Michael Snyder Cc: Jim Blandy , gdb-patches@sources.redhat.com Subject: Re: RFA: don't try to compare IEEE NaN's Date: Wed, 06 Jun 2001 23:19:00 -0000 Message-id: References: <3B1E6E7A.CEBC4116@cygnus.com> X-SW-Source: 2001-06/msg00109.html 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.