not-a-number's

Mischa Baars mjbaars1977@gmail.com
Wed Jan 16 09:00:00 GMT 2013


On 01/16/2013 08:57 AM, Eric Botcazou wrote:
>> Well, I have an Intel manual here that states that any operation on a
>> QNaN should return a QNaN, which means that also the compare should
>> return a QNaN when one or both of the arguments is a QNaN.
> No, that isn't how comparisons work.  The correct result is 2 according to the
> comparison rules of IEEE-754.  I'd suggest reading page 8 of "Lecture Notes on
> the Status of IEEE 754" by Kahan:
>    http://www.cs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF
>
Well, this is just a document of another teacher, this is not the Intel 
manual. Please read the other mail for me with the output of the 'ftst' 
instruction.



More information about the Gcc mailing list