comp.lang.ada
 help / color / mirror / Atom feed
* double-length integers/fixed
@ 2000-02-25  0:00 Roger Barnett
  2000-02-25  0:00 ` Gautier
  0 siblings, 1 reply; 2+ messages in thread
From: Roger Barnett @ 2000-02-25  0:00 UTC (permalink / raw)



Does anyone know of a package supporting double-length integer
(and ideally fixed point) types ?

[ i.e. to provide support for a 2n-bit integer/fixed types using a compiler 
       which uses n-bits for its largest integer/fixed types ]

I'm looking at a couple of the arbitrary-size support packages, but 
I'd be interested to know if there are any more specific alternatives.


TIA

-- 
Roger Barnett






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: double-length integers/fixed
  2000-02-25  0:00 double-length integers/fixed Roger Barnett
@ 2000-02-25  0:00 ` Gautier
  0 siblings, 0 replies; 2+ messages in thread
From: Gautier @ 2000-02-25  0:00 UTC (permalink / raw)


Roger Barnett wrote:

> Does anyone know of a package supporting double-length integer
> (and ideally fixed point) types ?
> 
> [ i.e. to provide support for a 2n-bit integer/fixed types using a compiler
>        which uses n-bits for its largest integer/fixed types ]
> 
> I'm looking at a couple of the arbitrary-size support packages, but
> I'd be interested to know if there are any more specific alternatives.

With a package providing arbitrary-size package you can define a fixed-size
subtype :-) E.g.

  NB_Blocs_maximal: constant:= 4;
  SUBTYPE ENTIER IS Multi_precision_integers.multi_int( NB_Blocs_maximal );

Some links for multi-precision @ http://members.xoom.com/gnatlist/

G.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-02-25  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-25  0:00 double-length integers/fixed Roger Barnett
2000-02-25  0:00 ` Gautier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox