|
Boost : |
From: Johan Råde (rade_at_[hidden])
Date: 2006-10-12 11:52:31
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_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
>
>
The problem is <boost/endian.hpp>.
According to <boost/detail/endian.hpp> the platform is little endian.
But it is clearly big endian.
--Johan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk