GDC for x86_64!

Anders F Björklund afb at algonet.se
Thu Sep 21 05:25:08 PDT 2006


Don Clugston wrote:

> Anders, could you do me a favour? I'd love to know what the following 
> prints on a PowerPC CPU (and on x86-64, for that matter). It would be a 
> great help for math library portability. It's amazingly hard to find 
> documentation on this stuff. - Don.

Here you go: (PPC)
nan 7ff8000000000000
nan 7ff8000000000000
nan ffffffffffffffff
nan ffffffffe0000000
nan ffffabcd9876ffff
nan ffffabcd80000000
inf 7ff0000000000000
nan 7ff8000000000000
nan 7ff8000000000009
nan fff8000000000009

BTW "real" and "double"
are the same size here.

--anders



More information about the D.gnu mailing list