delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/19/23:40:39

From: "A. Sinan Unur" <sinan DOT unur AT cornell DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019