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=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ef44357ebdfefea X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: number bases Date: 1999/11/02 Message-ID: <7vmkk2$peq$1@nnrp1.deja.com>#1/1 X-Deja-AN: 543469256 References: <381D4C88.B5E8BBE7@interact.net.au> <860624474wnr@diphi.demon.co.uk> X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Nov 02 12:15:01 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-11-02T00:00:00+00:00 List-Id: In article <860624474wnr@diphi.demon.co.uk>, jpt@diphi.demon.co.uk wrote: where the radix > used for the dividend and divisor could be anywhere between 2 and 45_000 > (radix**2 has to be less than Max_Int). I tried it with a few different > values, and the clear winner on speed was a radix of 256. (I don't know > about storage). This was Gnat 3.10 on Win95. Of course the efficient way to do multiple precision on a machine with k-bit words is to use a radix of 2**k, but higher level languages make this approach hard. Multiple precision integer arithmetic is one of the few things I know that is FAR easier to program in machine language than in typical high level languages (which do not give convenient access to the necessary primitives, namely the carry flag, and double length products and dividends). Sent via Deja.com http://www.deja.com/ Before you buy.