Re: strtold("inf",NULL) returns a NaN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 04, 2016 at 11:45:42AM +1000, sisyphus1@xxxxxxxxxxxxxxx wrote:
> ld is:      7fff8000000000000000

This is +Inf in 80-bit 8087 format.

> f128 is: 7fff8000000000000000000000000000

This is a NaN in standard format (Inf would be
7fff0000000000000000000000000000).

> It's only when this long double value is cast to __float128 that it behaves 
> as a NaN.
> 
> Where to from here ?

Look at the generated machine code for the cast?  The value returned
from strtold looks correct.


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux