delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/19/08:15:54

Newsgroups: comp.os.msdos.djgpp
From: "A. Jans-Beken" <jabe AT oce DOT nl>
Subject: Re: 64 bit integers ??!?
Message-ID: <34C34232.1DC@oce.nl>
Sender: news AT oce DOT nl (The Daily News @ nntp01.oce.nl)
Organization: Océ-Nederland B.V.
References: <69tlsd$lk2 AT examiner DOT concentric DOT net>
Mime-Version: 1.0
Date: Mon, 19 Jan 1998 12:08:18 GMT
Lines: 13
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Andy Fung wrote:
> 
> Hi all.
> I was wondering, is it possible to use 64bit integers in DJgpp C++ v2.0 .
> 
> I wanted to make a fixed point math lib., with 64bit bit integers, it could
> help a lot.

It is indeed possible. Use long long int. You can try following code:

main() {
   printf("%d\n", sizeof(long long int));
   }

- Raw text -


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