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: Ross Jordan <rjordan [ at ] numb [ dot ] ca>
  • Date: Wed, 19 Sep 2007 11:29:05 -0700
It would seem Bart Trojanowski, on Wed, Sep 19, 2007 at 02:07:24PM -0400, wrote:
> * William Case <billlinux [ at ] rogers [ dot ] com> [070919 13:19]:
> > > > 
> > > > Given that I am using an AMD Athalon 64 x2 CPU:
> > > > 
> > And given that "sizeof(int)" returns 8 bytes or maximum of
>                   ^^^^^^^^^^^^^^^^^^^^^^
> 
> 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?

-Ross