[CVALE] Question about bytes, bits, and endianess...
Robert Nickel
robert at artnickel.com
Thu Sep 7 10:51:19 PDT 2006
On 2006.09.07 08:09:56 -0700, Landon Blake wrote:
[...]
> Where is the bit that indicates the sign of a number placed on a 4 byte
> integer in little-endian order, and where is it placed in a 4 byte integer
> in big-endian order? Does a "on" value, or a "one" value indicate a
> negative or positive number?
[...]
The sign bit is always the MSB of the value in question.
As for a discussion of endianness, see http://en.wikipedia.org/wiki/Endian .
> P.S. - Is a 4 byte integer with the value of 2 in big-endian equal to
> "0010 0000 0000 0000" or do I have it backwards?
Backwards.
HTH,
--Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fire2wire.com/pipermail/cvale/attachments/20060907/cccab15a/attachment.bin
More information about the cvale
mailing list