diff options
author | Michael Jones <michaelrj@google.com> | 2022-07-18 11:32:04 -0700 |
---|---|---|
committer | Michael Jones <michaelrj@google.com> | 2022-07-18 14:23:33 -0700 |
commit | bf7f01d857eda2ea0753e92149c2941c7ad84bbc (patch) | |
tree | 6e9d642d68c637ede2d4114a453ef21847e7dcea /llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp | |
parent | 1a1324a303f856bb6cfd0a2bca00736c2b5bc187 (diff) | |
download | llvm-bf7f01d857eda2ea0753e92149c2941c7ad84bbc.zip llvm-bf7f01d857eda2ea0753e92149c2941c7ad84bbc.tar.gz llvm-bf7f01d857eda2ea0753e92149c2941c7ad84bbc.tar.bz2 |
[libc] fix strtofloatingpoint on rare edge case
Currently, there are two string parsers that can be used in a call to
strtofloatingpoint. There is the main parser used by Clinger's fast path
and Eisel-Lemire, and the backup parser used by Simple Decimal
Conversion. There was a bug in the backup parser where if the number had
more than 800 digits (the size of the SDC buffer) before the decimal
point, it would just ignore the digits after the 800th and not count
them into the exponent. This patch fixes that issue and adds regression
tests.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D130032
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp')
0 files changed, 0 insertions, 0 deletions