-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
170: Improve performance of the basic division algorithm. r=cuviper a=tczajka Avoid computing a multiple of the divisor (and thus allocating memory) in the division loop. Instead, directly subtract a multiple of the divisor from the dividend. Also compute a more accurate guess for the next digit of the result. The guess is now exact in almost all cases. In those cases where it's not exact, it will be off by exactly 1. Co-authored-by: Tomek Czajka <tczajka@gmail.com>
- Loading branch information
Showing
3 changed files
with
117 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters