From: "Craig Carey <research@ijs.co.nz>" <research@ijs.co.nz>
Subject: Re: What about big integers in Ada 2005?
Date: 16 Sep 2005 20:43:15 -0700
Date: 2005-09-16T20:43:15-07:00 [thread overview]
Message-ID: <1126928595.923839.231970@g14g2000cwa.googlegroups.com> (raw)
In-Reply-To: <1126881206.417473.259360@g47g2000cwa.googlegroups.com>
On 16 Sep 2005 07:33:26 -0700, gautier_niouzes@hotmail.com wrote:
...
>> disappointed - Ada95 does not support integers of ANY size,
...
>on the following site you'll find a bunch of downloadble packages:
>
>http://www.chez.com/bignumber/
That webpage is out of date since not referring to my Ada bindings to
the GNU GMP big numbers package:
http://tope.tigris.org/source/browse/tope/src/Gmp/gmp_2k4.ads?view=markup
My code replaces the GMP Ada bindings named at the chez.com website.
>BTW, the freshest version of my multi-precision integers are
>in mathpaqs.zip on my Ada page below.
File "multi_precision_integers.ads" (*.adb file is 40kb):
| subtype Basic_int is Integer;
| type Index_int is new integer;
|
| type Block_array is array( index_int range <> ) of Basic_int;
|
| type Multi_int(n: Index_int) is record
| blk: Block_array( 0..n ); -- the n blocks with ABSOLUTE v...
| neg: Boolean; -- negative flag
| zero: Boolean:=True; -- zero flag (supercedes the ot...
| last_used: Index_int; -- the others blocks are suppos...
| end record;
(The GNAT style checker won't accept that code fragment.)
GMP did compile well with GCC 2.8.1 (which was needed since combining
GNAT 2.8.1 with a GCC C (not C++) of a different version, in Windows,
led
to botched parameter passing.
There was a message about C/C++ to Ada. A way to get that running is to
have two Ada YACC (AdaGOOP) parsers in series. Maybe Mr de Montmollin
can
produce a program to convert C body files into faulty Ada.
Craig Carey, Auckland city
prev parent reply other threads:[~2005-09-17 3:43 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 17:06 What about big integers in Ada 2005? jtg
2005-09-15 17:26 ` Pascal Obry
2005-09-15 17:30 ` Martin Dowie
2005-09-15 17:26 ` Martin Krischik
2005-09-15 19:37 ` Martin Dowie
2005-09-15 21:08 ` Larry Kilgallen
2005-09-15 20:33 ` jtg
2005-09-15 21:10 ` Larry Kilgallen
2005-09-18 0:46 ` adaworks
2005-09-30 17:41 ` Robert A Duff
2005-09-30 20:18 ` Jeffrey R. Carter
2005-10-02 0:27 ` adaworks
[not found] ` <imsuj1h8vevg4un71rmh0nc41pnee5ihjl@4ax.com>
2005-10-02 10:33 ` Martin Krischik
2005-10-02 16:20 ` adaworks
2005-10-04 5:24 ` adaworks
2005-10-04 7:22 ` tmoran
2005-10-04 8:25 ` Dmitry A. Kazakov
2005-10-04 11:57 ` Simon Clubley
2005-10-04 16:10 ` Robert A Duff
2005-10-04 17:24 ` Simon Clubley
2005-10-04 19:44 ` Robert A Duff
2005-10-04 13:46 ` adaworks
2005-10-04 16:38 ` Robert A Duff
2005-10-04 16:52 ` Martin Dowie
2005-10-04 17:16 ` Robert A Duff
2005-10-04 13:50 ` adaworks
2005-10-04 14:59 ` Larry Kilgallen
2005-10-04 16:03 ` Robert A Duff
2005-10-04 18:56 ` adaworks
2005-10-10 5:36 ` Dave Thompson
2005-10-14 0:31 ` adaworks
2005-10-06 14:21 ` Adrian Hoe
2005-10-07 6:48 ` Martin Krischik
2005-10-02 0:48 ` Brian May
2005-10-02 10:28 ` Martin Krischik
2005-10-02 10:52 ` Brian May
2005-10-02 15:12 ` Simon Wright
2005-10-02 17:11 ` Martin Dowie
2005-09-16 14:33 ` gautier_niouzes
2005-09-17 3:43 ` Craig Carey <research@ijs.co.nz> [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox