[libc] Correct rounding for hexadecimalStringToFloat with long inputs.
authorTue Ly <lntue@google.com>
Sat, 13 Nov 2021 00:01:48 +0000 (19:01 -0500)
committerTue Ly <lntue@google.com>
Tue, 16 Nov 2021 19:29:39 +0000 (14:29 -0500)
commit201cc2d885287c91127d23ffe6f30472e974b2dc
tree2de37c18ae25bb0393a41419dc6137cc44973bfe
parent434dc0a5bcae50e87458e893ae5469619a35839e
[libc] Correct rounding for hexadecimalStringToFloat with long inputs.

Update binaryExpTofloat so that it will round correctly for long inputs when converting hexadecimal strings to floating points.

Differential Revision: https://reviews.llvm.org/D113815
libc/src/__support/str_to_float.h
libc/test/src/stdlib/strtof_test.cpp