commit | 4d98327cbd1f9190fca5d79a00cf86bf9e5b97ee | [log] [tgz] |
---|---|---|
author | Michael Jones <michaelrj@google.com> | Fri Sep 24 23:11:11 2021 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Oct 04 14:10:16 2021 -0700 |
tree | b7701bf63d970748457d88aac3718af35314842f | |
parent | 68fc9811e067b9d31217fcbd0856b770225c21c6 [diff] |
[libc][NFC] Add supporting class for atof implementation This change adds the High Precision Decimal described here: https://nigeltao.github.io/blog/2020/parse-number-f64-simple.html It will be used for the atof implementation later, but is complete and tested now. The code is inspired by the golang implmentation of the HPD class, which can be found here: https://github.com/golang/go/blob/release-branch.go1.16/src/strconv/decimal.go Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D110454 GitOrigin-RevId: 6f80339b18da61be986e75b4824ff5b308412ead