diff options
author | Michael Jones <michaelrj@google.com> | 2021-10-26 16:39:23 -0700 |
---|---|---|
committer | Michael Jones <michaelrj@google.com> | 2021-10-29 10:50:03 -0700 |
commit | 62c187cb55897e3732667892d38bb9490eb2b669 (patch) | |
tree | 8c35d64e8f764eb1314ce6a0e4f61cb619c9068e /llvm/lib/Support/Path.cpp | |
parent | fad05465c16f123567d40e7e5cbeea69aa6e5c91 (diff) | |
download | llvm-62c187cb55897e3732667892d38bb9490eb2b669.zip llvm-62c187cb55897e3732667892d38bb9490eb2b669.tar.gz llvm-62c187cb55897e3732667892d38bb9490eb2b669.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
0 files changed, 0 insertions, 0 deletions