From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: 64 bit integers ??!? Date: Tue, 20 Jan 1998 22:43:28 -0500 Organization: Two pounds of chaos and a pinch of salt. Lines: 27 Message-ID: <34C56EE0.1F9D@cs.com> References: NNTP-Posting-Host: ppp203.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 | ---------------------------------------------------------------------