comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@mitre-bedford.arpa  (Robert I. Eachus)
Subject: Re: 64-bit Integer
Date: 28 Jun 93 15:56:32 GMT	[thread overview]
Message-ID: <EACHUS.93Jun28105632@spectre.mitre.org> (raw)

In article <9306251529.AA05632@eight-ball.boeing.com> crispen@eight-ball.boeing
.com (crispen) writes:

   > Sorry to ask an actual Ada question with no mention of Greg (oh,
   > hell!)  but does anyone know where I could find some 64-bit
   > integer math in Ada?  We've got some DIS data coming in that has
   > a 64-bit integer field, and we're planning to work with it on a
   > SPARC and various VMEbus computers with Verdix Ada.

   Two answers, both using the ADAR packages...  The based decimal
stuff is slow in the portable version, but supports 18 digits, and the
limit is somewhat arbitrary.  The generic decimal stuff is fast, but
the maximum number of bits available depends on 'MANTISSA of the
floating point type used.  So, on a VAX or IBM mainframe 64-bits is no
problem.  On the SPARC however, this approach is limited to 53 bits...
If you really need 64 bits, I can do a non-portable version which will
work on the SPARC.


					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...
--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...

             reply	other threads:[~1993-06-28 15:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-28 15:56 Robert I. Eachus [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-06-27  3:10 64-bit Integer pa.dec.com!e2big.mko.dec.com!jac.nuo.dec.com!digits.enet.dec.com!brett
replies disabled

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