home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] Double checking re: twos complement & signed types ??

  • Subject: Re: [OCLUG-Tech] Double checking re: twos complement & signed types ??
  • From: Bart Trojanowski <bart-oclug [ at ] jukie [ dot ] net>
  • Date: Wed, 19 Sep 2007 16:34:12 -0400
* Ross Jordan <rjordan [ at ] numb [ dot ] ca> [070919 14:29]:
> It would seem Bart Trojanowski, on Wed, Sep 19, 2007 at 02:07:24PM -0400, wrote:
> > I think you mean 4.  32bits.  On Linux int has always been 32bit.
> 
> On 64-bit machines (running in 64-bit mode), int should be 8 bytes, no?

Nope.  Linux uses LLP64.  Only LongLong and Pointers are 64bit.

Why would int be 8bit ever?  And how would you get 8, 16, and 32 bit
numbers if int was 64.

-Bart

-- 
				WebSig: http://www.jukie.net/~bart/sig/