
12 Oct
2006
12 Oct
'06
3:52 p.m.
John Maddock wrote:
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@td176> aCC -AA -I ~ *.cpp maddock@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
The problem is <boost/endian.hpp>. According to <boost/detail/endian.hpp> the platform is little endian. But it is clearly big endian. --Johan