Skip to Content.
Sympa Menu

freetds - Re: BIGENDIAN

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Bob Kline <bkline AT rksystems.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: BIGENDIAN
  • Date: Wed, 11 Jul 2001 17:17:14 -0400 (EDT)


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."

--
Bob Kline
mailto:bkline AT rksystems.com
http://www.rksystems.com





Archive powered by MHonArc 2.6.24.

Top of Page