From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: 64 bit integers ??!? Date: Mon, 19 Jan 1998 17:35:52 -0500 Organization: Cornell University (http://www.cornell.edu/) Lines: 27 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <34C3D548.B6D7D913@cornell.edu> References: <69tlsd$lk2 AT examiner DOT concentric DOT net> <34C34232 DOT 1DC AT oce DOT nl> <6a074r$gu4 AT examiner DOT concentric DOT net> NNTP-Posting-Host: cu-dialup-0041.cit.cornell.edu 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 Andy Fung wrote: > > >It is indeed possible. Use long long int. You can try following code: > > > >main() { > > printf("%d\n", sizeof(long long int)); > > } > > Strange, since an int is 32bit, I wonder 64bit integer are not declared at > long int instead. > Also, is it possible to use shifting of more than 32bits. I.E. : > mynum << 48; read about it: C:\WINDOWS> info gcc "c ext" "long long" -- ---------------------------------------------------------------------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/