Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-10-12 11:30:01


Johan Råde wrote:
>> John,
>>
>> I am a bit baffled with the results from your HP-UX/Itanium tests.
>>
>> Could you run the attached program on that machine?
>> It is just a single cpp file.
>> It prints the byte patterns of various numbers.

Here we go, HP-UX on itanium:

maddock_at_td176> aCC -AA -I ~ *.cpp
maddock_at_td176> ./a.out

little endian

float -------------------------------

0 00 00 00 00
sn. min 01 00 00 00
n. min 00 00 80 00
1 00 00 80 3f
4/3 ab aa aa 3f
max ff ff 7f 7f
inf 00 00 80 7f
q. nan 00 00 c0 7f
s. nan 00 00 a0 7f
-1 00 00 80 bf

double ------------------------------

0 00 00 00 00 00 00 00 00
sn. min 01 00 00 00 00 00 00 00
n. min 00 00 00 00 00 00 10 00
1 00 00 00 00 00 00 f0 3f
4/3 55 55 55 55 55 55 f5 3f
max ff ff ff ff ff ff ef 7f
inf 00 00 00 00 00 00 f0 7f
q. nan 00 00 00 00 00 00 f8 7f
s. nan 00 00 00 00 00 00 f4 7f
-1 00 00 00 00 00 00 f0 bf

long double -------------------------

0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
sn. min 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
n. min 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 3f
4/3 55 55 55 55 55 55 55 55 55 55 55 55 55 55 ff 3f
max ff ff ff ff ff ff ff ff ff ff ff ff ff ff fe 7f
inf 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 7f
q. nan 00 00 00 00 00 00 00 00 00 00 00 00 00 80 ff 7f
s. nan 00 00 00 00 00 00 00 00 00 00 00 00 00 40 ff 7f
-1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff bf

And for completeness, HP-UX on PA-RISC:

maddock_at_td191> aCC -AA -I ~ *.cpp
maddock_at_td191> ./a.out

big endian

float -------------------------------

0 00 00 00 00
sn. min 00 00 00 01
n. min 00 80 00 00
1 3f 80 00 00
4/3 3f aa aa ab
max 7f 7f ff ff
inf 7f 80 00 00
q. nan 7f a0 00 00
s. nan 7f c0 00 00
-1 bf 80 00 00

double ------------------------------

0 00 00 00 00 00 00 00 00
sn. min 00 00 00 00 00 00 00 01
n. min 00 10 00 00 00 00 00 00
1 3f f0 00 00 00 00 00 00
4/3 3f f5 55 55 55 55 55 55
max 7f ef ff ff ff ff ff ff
inf 7f f0 00 00 00 00 00 00
q. nan 7f f4 00 00 00 00 00 00
s. nan 7f f8 00 00 00 00 00 00
-1 bf f0 00 00 00 00 00 00

long double -------------------------

0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
sn. min 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
n. min 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1 3f ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4/3 3f ff 55 55 55 55 55 55 55 55 55 55 55 55 55 55
max 7f fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff
inf 7f ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00
q. nan 7f ff 40 00 00 00 00 00 00 00 00 00 00 00 00 00
s. nan 7f ff 80 00 00 00 00 00 00 00 00 00 00 00 00 00
-1 bf ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00

HTH, John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk