-
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.
math, dragonbox: introduce smallnum optimizations
Mostly ported from the reference implementation of Dragonbox. They are activated by default only on SBCL, as on other implementations they tend to be slower than bignum operations. * code/math/implementation.lisp (+/64-64, +/128-64, */32-64/hi64) (*/32-64/lo64, */64-64, */64-64/hi64, */64-64/lo64, */64-128/hi128) (*/64-128/lo128): New functions, mostly ported from reference Dragonbox. (hi/hi64/128): New smallnum optimization and compiler macro. (round-to-odd/32-64, round-to-odd/64-128): New smallnum optimizations. (floor-multiply/32-64q64, floor-multiply/64-128q128) (floor-multiply/evenp/32-64q64, floor-multiply/evenp/64-128q128): New smallnum optimizations from reference Dragonbox. (*expt10/values/64*): Add smallnum version. * code/math/packages.lisp: Push QUAVIVER/MATH/SMALLNUM feature on SBCL. * code/dragonbox/implementation.lisp (floor-by-expt10): New smallnum optimization from reference Dragonbox.
- Loading branch information
1 parent
3a38565
commit 3b06535
Showing
3 changed files
with
191 additions
and
2 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