delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/29/21:59:12

From: johan DOT winge AT iname DOT com (Johan Winge)
Newsgroups: comp.os.msdos.djgpp
Subject: Unlimited size integers
Message-ID: <37a0d9b1.217004807@newsb.telia.net>
X-Newsreader: Forte Free Agent 1.11/32.235
Lines: 25
Date: Thu, 29 Jul 1999 23:07:30 GMT
NNTP-Posting-Host: 62.20.229.215
X-Complaints-To: abuse AT telia DOT com
X-Trace: newsb.telia.net 933289650 62.20.229.215 (Fri, 30 Jul 1999 01:07:30 CEST)
NNTP-Posting-Date: Fri, 30 Jul 1999 01:07:30 CEST
Organization: Telia Internet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello!

To begin with, I'm fairly new to DJGPP, and to C too for that matter.
I run it through RHIDE under DOS/Win95. To put it short: I wonder if
there is a way to make use of integers of unlimited size, whith some
includes(?) or the like? This, for example, I would like to be able to
do:

unliminteger x, y,z;
x=123456789123456789123456789123456789;
y=546124567891234567811214564;
z=x + y;  /* The same for -,*,/,% and bitwise logical &,| etc. */
printf("%X",z);
etc. (I think you got the point...)

After som search on the web I found a package kalled NTL at
www.shoup.net which looked like if it could stand up to my criteria. I
couldn't find out how to get it to work in DJGPP though...  (As I
said, I'm new to this...) Anyone have any experience of this and knows
if it should work and then how it should be set up?

Any other package you could recommend that fits my needs?

Thanks in advance,
Johan Winge.

- Raw text -


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