This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

Re: RFA: don't try to compare IEEE NaN's



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.


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