[libc] Add implementations of round and roundf.
authorSiva Chandra Reddy <sivachandra@google.com>
Fri, 29 May 2020 06:03:32 +0000 (23:03 -0700)
committerSiva Chandra Reddy <sivachandra@google.com>
Wed, 10 Jun 2020 06:01:20 +0000 (23:01 -0700)
commit4be1c116ad8602d96d6d212a661425fbf05eb58f
treeeddbc7be4cda7d1340ffe7bf872f4b42f8b8bfbe
parent9ec57cce6240bcdef599cc8a98590193f16b2d3e
[libc] Add implementations of round and roundf.

Reviewers: asteinhauser

Differential Revision: https://reviews.llvm.org/D80779
12 files changed:
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/lib/CMakeLists.txt
libc/spec/stdc.td
libc/src/math/CMakeLists.txt
libc/src/math/round.cpp
libc/src/math/roundf.cpp [moved from libc/src/math/round_redirector.cpp with 60% similarity]
libc/src/math/roundf.h [new file with mode: 0644]
libc/test/src/math/CMakeLists.txt
libc/test/src/math/round_test.cpp [new file with mode: 0644]
libc/test/src/math/roundf_test.cpp [new file with mode: 0644]
libc/utils/FPUtil/FloatOperations.h