delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/12/02:30:34

From: rwaltman AT bellatlantic DOT net (Roberto Waltman)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 8 Byte Integer
Date: Thu, 12 Feb 1998 03:51:10 GMT
Organization: .
Lines: 19
Message-ID: <34e67037.6142732@news5.bellatlantic.net>
References: <3 DOT 0 DOT 32 DOT 19980207131923 DOT 0083a980 AT dataplusnet DOT com> <34DCBB48 DOT 2F2D AT cs DOT com>
Reply-To: rwaltman AT bellatlantic DOT net
NNTP-Posting-Host: client-124-164.bellatlantic.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>> 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:
>>  <...snip...>
>> 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?

>If you want to create your own integral data types, then there are a
>large number of options available.  <...snip...>  There should be
>plenty of references available on the Internet and in print;

The book "C Interfaces and Implementations" by D.R.Hanson has
source code for two packages implementing extended precision
arithmetic and arbitrary precision arithmetic functions.
The code is available at
http://www.cs.princeton.edu/software/cii/ , but you'll probably
need the book to be able to use it.

RW.

- Raw text -


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