delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/16/05:53:34

From: Chris Croughton <crough45 AT amc DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gmp library
Date: Wed, 14 Jan 1998 14:00:01 +0100
Message-Id: <34BCB6D1.15FB@amc.de>
References: <69i4ql$890 AT freenet-news DOT carleton DOT ca>
Nntp-Posting-Host: bob.bob.bofh.org
Mime-Version: 1.0
Lines: 41
To: djgpp AT delorie DOT com
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:
> 
> I appear to have lost the URL for the GMP library. (But I did manage to
> snag tar and gzip.)

My 'port' of it to work with DJGPP is at 

  http://www.keris.demon.co.uk/bin/gmp202.zip

> What was it again? Also, is there a C++ multiprecision library, or a C++
> wrapper/version of gmp, or do I have to write my own? (If so, and I copy
> parts of GMP, I assume it becomes LGPL?)

I tried writing a wrapper, but it gets hideously slow (assuming that
you want to use ordinary operators like + and -) because when allocating
temporaries it keeps doing malloc/free.

I've written a (non-GPL) set of routines using a fixed length.  Only
integer at present, although I do intend to extend them to fixed and
floating point in the future.  They have C++ wrappers with all standard
arithmetic functions (bit operations are not there) including shifts.

If you want them, my C/C++ library source is at

  http://www.keris.demon.co.uk/bin/xlib.zip

There are several other things in there as well, almost all still 
under development (and therefore likely to change in future versions
of the library, some drastically).

It has some documentation, mainly (where it's there at all) as man
pages (but it should include text versions as well for them), but
not yet for the MP stuff.

(It should have size 63287 and timestamp Jan 14 12:42 - if earlier the
cache hasn't been updated yet so try again.)

Alternatively email me and I'll send you mparith.h and .c, the MP
arithmetic part of it.

Chris C

oesn't help, you could send me your script. 

Laszlo

- Raw text -


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