[Haskell-cafe] Endianess

Ketil Malde ketil at malde.org
Tue May 13 15:24:53 EDT 2008


Jed Brown <jed at 59A2.org> writes:

> This, of course, is because `od -x' regards the input as 16-bit integers.  We
> can get saner output if we regard it is 8-bit integers.

Yes, of course. The point was that for big-endian, the word size
won't matter.  Little-endian words will be reversed with respect to
the normal (left-to-right, most significant first) way we print
numbers.

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list