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 Jul 93 12:13:58 GMT From: slinky.cs.nyu.edu!slinky.cs.nyu.edu!nobody@nyu.edu (Robert Dewar) Subject: Re: ADA arithmetic Message-ID: <235qi6$53l@schonberg.cs.nyu.edu> List-Id: Of course Simon's suggestion of how to program multi-precision numbers in Ada is reasonable as a crude approach for beginning students, but is ludicrously inefficient. Probably it is likely that a well written routine (I believe brother Eachus is hard at work on a portable efficient 64-bit integer package) will be an order of magnitude faster. Of course in assembler one can do much better. This is one of the very few times that assembler is not only more efficient but much easier to program than typical high level languages like Ada. Why: because these languages don't give access to the crucial primitives such as unsigned add with a carry indication.