lkml.org 
[lkml]   [1999]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Q: void* vs. unsigned long (fwd)
On Tue, Feb 16, 1999 at 11:29:49PM +0000, Francois Desarmenien wrote:
> John Cochran wrote:
> > The 1st bullet indicates that rank is independant of representation and if
> > you look at the definitions within <limits.h> (5.2.4.2.1) you'll see that
> > signed char is at least 8 bits long
> > short int is at least 16 bits long
> > int is at least 16 bits long
> > long is at least 32 bits long
> > long long is at least 64 bits long
> >
>
> That's not exactly the definitions I've learnt:
>
> It should be assumed that:
>
> char *is* 8 bits
> short int *is* 16 bits
> int is the size of int nativly handled by your CPU: can be anything
> long *is* 32 bits
> long long *is* 64 bits
>
>
> Tell me if I made a mistake
>
> François Désarménien

Yes. The standard is right. On a 64-bit machine, you want long to be 64 bits.

-- arvind

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.087 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site