home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!uwm.edu!csd4.csd.uwm.edu!markh
- From: markh@csd4.csd.uwm.edu (Mark)
- Newsgroups: comp.programming
- Subject: Arbitrary precision with large bases
- Date: 5 Jan 1993 19:27:02 GMT
- Organization: Computing Services Division, University of Wisconsin - Milwaukee
- Lines: 12
- Message-ID: <1icne6INNpjb@uwm.edu>
- NNTP-Posting-Host: 129.89.7.4
-
- A while back, I came up with an efficient arbitrary precision BCD arithmetic
- package that uses base 1,000,000,000 (which happens to be close to 2^30).
-
- I'm looking for other packages for comparison that use large bases, either
- BCD or binary. The non-trivial aspects to such as package are the following:
-
- (1) An algorithm to carry out A, B -> AB div BASE, AB mod BASE
- (2) A division algorithm that minimizes the amount of backtracking.
- The grade school algorithm is a backtracking algorithm, and only
- in base 2 is backtracking avoided.
- (3) A square root algorithm, like the one taught in school, that likewise
- minimizes backtracking.
-