From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_05,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!water!watmath!clyde!rutgers!im4u!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wes From: wes@obie.UUCP (Barnacle Wes) Newsgroups: comp.lang.ada Subject: Re: Need 64 bit integers on VAX Summary: Quads and overloaded operators the way to go. Message-ID: <31@obie.UUCP> Date: 4 Feb 88 07:05:51 GMT References: <1234@wayback.UUCP> Organization: UinTech, Layton, UT List-Id: In article <1234@wayback.UUCP>, arny@wayback.UUCP (Arny B. Engelson) writes: > > Is using something like Unsigned_Quadword, and overloading the arithmetic > operators, the way to go? Has someone already coded these routines? Yes, this is the way to go, that's why the features were put into the language. The problem with doing a good generic package in Ada is that it takes time, and on a "quickie" program you don't have the time available. I've got some pretty generic code around here somewhere for doing 64 bit ints in C, which you could probably convert to Ada and overload as operators. That assumes, of course, that you know C. (My only hands-on experience with Ada overloading was a package I wrote to handle 48-bit binary numbers as characters for a program that decoded messages on a DoD embedded network. The package wasn't in the version that got qualified and shown to the world, unfortunately.) -- {backbones}!utah-cs!utah-gr!uplherc!sp7040!obie!wes "Against Stupidity, The Gods Themselves Contend in Vain." -- Asimov