This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: infinity != infinity


> > >Thus, two infinities with the same sign should compare unordered.
> > 
Andreas Schwab:
> > The m68881 disagrees, and it is supposed to be IEEE compliant.
> 
Paolo Bonzini:
> The 8087 (and all of it successors) did too, and it is where IEEE itself 
> originated.  GCC's fp-bit.c disagrees as well.  I don't know of any 
> processor that implements your scheme -- your analysis is sound, agreed.

Actually, there is a comment in fp-bit.c:__fpcmp_parts that says:

      /* +inf > -inf, but +inf != +inf */

however, because __fpcmp_parts only returns a ternary value for
{ lt, eq, gt }, it can't return an appropriate value for unordered.


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