BIGENDIAN
Michael Peppler
mpeppler at peppler.org
Wed Jul 11 16:49:47 EDT 2001
Bob Kline writes:
> On Wed, 11 Jul 2001, Sam Sam wrote:
>
> > isn't 0x01000000 means 2^6=64 while 0x00000001 means 2^0=1 ?? CMIIW
> > please... why intel use 0x01000000 as representation of 1 ??
>
> It doesn't. The notation 0xHHHHHHHH (where H is a hex digit) is
> properly used to represent the logical value of the storage unit. When
> the ordering of the bytes used to store that value is to be represented
> a notation like "HH HH HH HH" is used. So you might write "an Intel
> machine stores the value 0x00000001 as 01 00 00 00." You would not want
> to write "an Intel machine stores the value 0x00000001 as 0x01000000."
Indeed - my bad, didn't take enough time to properly frame the
explanation.
Michael
--
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler at peppler.org - mpeppler at mbay.net
International Sybase User Group - http://www.isug.com
More information about the FreeTDS
mailing list