From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 28 Jun 93 15:56:32 GMT From: eachus@mitre-bedford.arpa (Robert I. Eachus) Subject: Re: 64-bit Integer Message-ID: List-Id: 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...