[all-commits] [llvm/llvm-project] cc65ec: [libc] fix strtofloat on large exponents
michaelrj-google via All-commits
all-commits at lists.llvm.org
Wed Apr 5 09:58:45 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cc65ecfd08fbcd1dbfa21532830877460432b4da
https://github.com/llvm/llvm-project/commit/cc65ecfd08fbcd1dbfa21532830877460432b4da
Author: Michael Jones <michaelrj at google.com>
Date: 2023-04-05 (Wed, 05 Apr 2023)
Changed paths:
M libc/src/__support/str_to_float.h
M libc/test/src/stdlib/strtod_test.cpp
Log Message:
-----------
[libc] fix strtofloat on large exponents
Previously if you specified an exponent of more than 10000 in string to
float (e.g. "1e10001") it would treat it as 10000. A bug was discovered
where by having more than 10000 zeroes after a decimal point and an
exponent of more than 10000 this would cause the code to return the
incorrect value.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D147474
More information about the All-commits
mailing list