[libc] Move implementations of cosf, sinf, sincosf to src/math directory.
authorSiva Chandra Reddy <sivachandra@google.com>
Mon, 23 Mar 2020 19:00:35 +0000 (12:00 -0700)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 16 Apr 2020 15:46:10 +0000 (08:46 -0700)
commit5fedf7f42043f6a7d4562df2eab4a22b3346ac1a
tree68e54f09a8dc2a40d6f3eede8dfd7705fa617f15
parent44c4ba34d001dcf538d7396007b5611d6f697f86
[libc] Move implementations of cosf, sinf, sincosf to src/math directory.

NFC intended in the implementaton. Only mechanical changes to fit the LLVM
libc implementation standard have been done.

Math testing infrastructure has been added. This infrastructure compares the
results produced by the libc with the high precision results from MPFR.
Tests making use of this infrastructure have been added for cosf, sinf and
sincosf.

Reviewers: abrachet, phosek

Differential Revision: https://reviews.llvm.org/D76825
34 files changed:
libc/AOR_v20.02/math/cosf.c [deleted file]
libc/AOR_v20.02/math/sincosf.c [deleted file]
libc/AOR_v20.02/math/sincosf.h [deleted file]
libc/AOR_v20.02/math/sincosf_data.c [deleted file]
libc/AOR_v20.02/math/sinf.c [deleted file]
libc/AOR_v20.02/math/test/testcases/directed/cosf.tst [deleted file]
libc/AOR_v20.02/math/test/testcases/directed/sincosf.tst [deleted file]
libc/AOR_v20.02/math/test/testcases/directed/sinf.tst [deleted file]
libc/AOR_v20.02/math/test/testcases/random/float.tst
libc/config/linux/api.td
libc/lib/CMakeLists.txt
libc/src/__support/common.h.def
libc/src/math/CMakeLists.txt
libc/src/math/cosf.cpp [new file with mode: 0644]
libc/src/math/cosf.h [new file with mode: 0644]
libc/src/math/math_utils.h [new file with mode: 0644]
libc/src/math/sincosf.cpp [new file with mode: 0644]
libc/src/math/sincosf.h [new file with mode: 0644]
libc/src/math/sincosf_data.cpp [new file with mode: 0644]
libc/src/math/sincosf_utils.h [new file with mode: 0644]
libc/src/math/sinf.cpp [new file with mode: 0644]
libc/src/math/sinf.h [new file with mode: 0644]
libc/test/src/CMakeLists.txt
libc/test/src/math/CMakeLists.txt [new file with mode: 0644]
libc/test/src/math/cosf_test.cpp [new file with mode: 0644]
libc/test/src/math/float.h [new file with mode: 0644]
libc/test/src/math/sdcomp26094.h [new file with mode: 0644]
libc/test/src/math/sincosf_test.cpp [new file with mode: 0644]
libc/test/src/math/sinf_test.cpp [new file with mode: 0644]
libc/utils/CMakeLists.txt
libc/utils/MPFRWrapper/CMakeLists.txt [new file with mode: 0644]
libc/utils/MPFRWrapper/MPFRUtils.cpp [new file with mode: 0644]
libc/utils/MPFRWrapper/MPFRUtils.h [new file with mode: 0644]
libc/utils/MPFRWrapper/check_mpfr.cpp [new file with mode: 0644]