[libc] Add implementation of few floating point manipulation functions.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 2 Jun 2020 21:04:57 +0000 (14:04 -0700)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 11 Jun 2020 19:23:11 +0000 (12:23 -0700)
commit118c13c691a5b3b0c5760061a89d5ef7a319c15b
tree255b838742255c4c9f5b9e58e04710b86a7182a9
parent269d843720382a8beafdf156cd01f9791faff66c
[libc] Add implementation of few floating point manipulation functions.

Implementations of copysign[f], frexp[f], logb[f], and modf[f] are added.

Reviewers: asteinhauser

Differential Revision: https://reviews.llvm.org/D81134
34 files changed:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/math/CMakeLists.txt
libc/src/math/copysign.cpp [new file with mode: 0644]
libc/src/math/copysign.h [new file with mode: 0644]
libc/src/math/copysignf.cpp [new file with mode: 0644]
libc/src/math/copysignf.h [new file with mode: 0644]
libc/src/math/frexp.cpp [new file with mode: 0644]
libc/src/math/frexp.h [new file with mode: 0644]
libc/src/math/frexpf.cpp [new file with mode: 0644]
libc/src/math/frexpf.h [new file with mode: 0644]
libc/src/math/logb.cpp [new file with mode: 0644]
libc/src/math/logb.h [new file with mode: 0644]
libc/src/math/logbf.cpp [new file with mode: 0644]
libc/src/math/logbf.h [new file with mode: 0644]
libc/src/math/modf.cpp [new file with mode: 0644]
libc/src/math/modf.h [new file with mode: 0644]
libc/src/math/modff.cpp [new file with mode: 0644]
libc/src/math/modff.h [new file with mode: 0644]
libc/test/src/math/CMakeLists.txt
libc/test/src/math/copysign_test.cpp [new file with mode: 0644]
libc/test/src/math/copysignf_test.cpp [new file with mode: 0644]
libc/test/src/math/frexp_test.cpp [new file with mode: 0644]
libc/test/src/math/frexpf_test.cpp [new file with mode: 0644]
libc/test/src/math/logb_test.cpp [new file with mode: 0644]
libc/test/src/math/logbf_test.cpp [new file with mode: 0644]
libc/test/src/math/modf_test.cpp [new file with mode: 0644]
libc/test/src/math/modff_test.cpp [new file with mode: 0644]
libc/utils/FPUtil/BitPatterns.h
libc/utils/FPUtil/CMakeLists.txt
libc/utils/FPUtil/FloatOperations.h
libc/utils/FPUtil/ManipulationFunctions.h [new file with mode: 0644]