[libc] Implement a high-precision floating point class.
authorTue Ly <lntue@google.com>
Wed, 7 Dec 2022 16:53:18 +0000 (11:53 -0500)
committerTue Ly <lntue@google.com>
Wed, 14 Dec 2022 05:37:14 +0000 (00:37 -0500)
commitd6802581700bdf65fc6d002d3d5667295044f0b3
tree989910a5cb36d4af7eaafd650a8abc585677c3d2
parentad8963f344c9c7228e50c7ebca637ee04824adb9
[libc] Implement a high-precision floating point class.

Implement a high-precision floating point class using UInt<> as its
mantissa.  This will be used in accurate pass for double precision math
functions.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D136799
libc/src/__support/FPUtil/CMakeLists.txt
libc/src/__support/FPUtil/dyadic_float.h [new file with mode: 0644]
libc/src/__support/UInt.h
libc/test/src/__support/CMakeLists.txt
libc/test/src/__support/FPUtil/CMakeLists.txt [new file with mode: 0644]
libc/test/src/__support/FPUtil/dyadic_float_test.cpp [new file with mode: 0644]
libc/utils/UnitTest/CMakeLists.txt
libc/utils/UnitTest/FPMatcher.h