Mail Archives: djgpp/1998/01/20/22:45:40
G DOT DegliEsposti AT ads DOT it wrote:
>
> >Strange, since an int is 32bit, I wonder 64bit integer are not declared at
> >long int instead.
>
> That's because the ANSI standard says explicitly that long int is 32 bit
> long
That's incorrect. ANSI states that:
short >= 16 bits
long >= 32 bits
short <= int <= long
That's the limit of the ANSI restrictions. However, most
implementations preserve longs as 32 bits, simply because most
architectures _are_ 32-bit, and most code assumes long to be 32 bits.
64-bit integer implementation is spotty at best; perhaps when 64-bit
systems become more prevalent we'll see a change.
--
---------------------------------------------------------------------
| John M. Aldrich |"Men rarely (if ever) manage to dream |
| aka Fighteer I |up a god superior to themselves. Most |
| mailto:fighteer AT cs DOT com |gods have the manners and morals of a |
| http://www.cs.com/fighteer |spoiled child." - Lazarus Long |
---------------------------------------------------------------------
- Raw text -