Skip to Content.
Sympa Menu

freetds - Re: BIGENDIAN

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: BIGENDIAN
  • Date: Wed, 11 Jul 2001 13:49:47 -0700


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




Archive powered by MHonArc 2.6.24.

Top of Page