Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc] add fast path to string to float conversion
Add the fast path first described by Clinger [1] with additions by Gay [2]. This speeds up conversion by about 10% by handling numbers with fewer digits more efficiently. [1] Clinger WD. How to Read Floating Point Numbers Accurately. SIGPLAN Not 1990 Jun;25(6):92–101. https://doi.org/10.1145/93548.93557. [2] Gay DM, Correctly rounded binary-decimal and decimal-binary conversions; 1990. AT&T Bell Laboratories Numerical Analysis Manuscript 90-10. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112580
- Loading branch information
1 parent
fad0546
commit 62c187c
Showing
2 changed files
with
175 additions
and
3 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