[libc] Add implementations of ceil[f], floor[f] and trunc[f] from math.h.
authorSiva Chandra Reddy <sivachandra@google.com>
Mon, 18 May 2020 22:06:01 +0000 (15:06 -0700)
committerSiva Chandra Reddy <sivachandra@google.com>
Mon, 1 Jun 2020 15:36:59 +0000 (08:36 -0700)
commit1caedd0c550646557d8d2feb97b3cbba8c48b2d7
treef0992458fcbbfe66de36b50ee07e01d527cf9ede
parent26c78e3095f42c066804cf517339002a1028ed61
[libc] Add implementations of ceil[f], floor[f] and trunc[f] from math.h.

Reviewers: abrachet

Differential Revision: https://reviews.llvm.org/D80612
25 files changed:
libc/lib/CMakeLists.txt
libc/src/math/CMakeLists.txt
libc/src/math/ceil.cpp [new file with mode: 0644]
libc/src/math/ceil.h [new file with mode: 0644]
libc/src/math/ceilf.cpp [new file with mode: 0644]
libc/src/math/ceilf.h [new file with mode: 0644]
libc/src/math/floor.cpp [new file with mode: 0644]
libc/src/math/floor.h [new file with mode: 0644]
libc/src/math/floorf.cpp [new file with mode: 0644]
libc/src/math/floorf.h [new file with mode: 0644]
libc/src/math/trunc.cpp [new file with mode: 0644]
libc/src/math/trunc.h [new file with mode: 0644]
libc/src/math/truncf.cpp [new file with mode: 0644]
libc/src/math/truncf.h [new file with mode: 0644]
libc/test/src/math/CMakeLists.txt
libc/test/src/math/ceil_test.cpp [new file with mode: 0644]
libc/test/src/math/ceilf_test.cpp [new file with mode: 0644]
libc/test/src/math/floor_test.cpp [new file with mode: 0644]
libc/test/src/math/floorf_test.cpp [new file with mode: 0644]
libc/test/src/math/trunc_test.cpp [new file with mode: 0644]
libc/test/src/math/truncf_test.cpp [new file with mode: 0644]
libc/utils/FPUtil/FloatOperations.h
libc/utils/FPUtil/FloatProperties.h
libc/utils/MPFRWrapper/MPFRUtils.cpp
libc/utils/MPFRWrapper/MPFRUtils.h