-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dragonbox: drop custom FLOOR-LOG-EXPT variants
They perform marginally worse on SBCL than QUAVIVER.MATH:FLOOR-LOG-EXPT, and removing the variants means less custom code in quaviver/dragonbox and automatically benefiting from any improvements to quaviver.math. * code/dragonbox/implementation.lisp (define-log) (floor-log2-expt10, floor-log5-expt2, floor-log5-expt2-minus-log5-3) (floor-log10-expt2, floor-log10-expt2-minus-log10-4/3): Remove macros. (floor-by-expt10-divisible-p, floor-by-expt10-small, kappa) (min-k/nearest/shorter-interval, max-k/nearest/shorter-interval) (min-k/nearest/normal-interval, max-k/nearest/normal-interval) (max-k/right-closed-directed) (beta/nearest/shorter-interval, beta/nearest/normal-interval) (beta-2/right-closed-directed, %nearest, %directed): Use QUAVIVER.MATH:FLOOR-LOG-EXPT, and expand FLOOR-LOG5-EXPT2-MINUS-LOG5-3 to the individual calls since QUAVIVER.MATH has no equivalent and it is computed at compile-time anyway.
- Loading branch information
1 parent
e032fa8
commit 18701b1
Showing
1 changed file
with
28 additions
and
85 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