www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/09/13:31:31

From: Reinier Heeres <rwh AT worldonline DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 8 Byte Integer
Date: Mon, 09 Feb 1998 18:22:38 +0100
Organization: World Online
Lines: 19
Message-ID: <34DF3B5E.47B018A7@worldonline.nl>
References: <3 DOT 0 DOT 32 DOT 19980207131923 DOT 0083a980 AT dataplusnet DOT com>
Reply-To: rwh AT worldonline DOT nl
NNTP-Posting-Host: alkmr1-p11.worldonline.nl
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Michael Matczynski wrote:

> Is there a way so I can specify the size of an integer in DJGPP.  In
> MSDN
> help, it says that MSVC++ 5.0 has the following integer sizes:
>
> 1 byte: –128 to 127
> 2 byte: –32,768 to 32,767
> 4 byte: –2,147,483,648 to 2,147,483,647
> 8 byte: –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
>
> I am doing a program that calculates prime numbers, so the bigger the
> better.  Is there any way I can get a 4 or 8 byte integer in DJGPP?

int or long types are 4 bytes, you'll have to create 8 byte types
yourself...

Reinier

- Raw text -


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