summaryrefslogtreecommitdiff
path: root/libc/test/src/math/rintl_test.cpp
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2020-12-21 09:16:41 -0800
committerSiva Chandra Reddy <sivachandra@google.com>2020-12-29 22:22:02 -0800
commitff6fd3855244bc90094e7de3f07853a5971cf8ef (patch)
treeb35e4c04b6416d49e0911927308ee5171e0c5a2c /libc/test/src/math/rintl_test.cpp
parent981a0bd85811fe49379fdbef35528e2c2f3511a3 (diff)
[libc] Add implementations of rounding functions which depend rounding mode.
Namely, implementations for rint, rintf, rintl, lrint, lrintf, lrintl, llrint, llrintf and llrintl have been added. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D93889
Diffstat (limited to 'libc/test/src/math/rintl_test.cpp')
-rw-r--r--libc/test/src/math/rintl_test.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/test/src/math/rintl_test.cpp b/libc/test/src/math/rintl_test.cpp
new file mode 100644
index 000000000000..6c50873a272d
--- /dev/null
+++ b/libc/test/src/math/rintl_test.cpp
@@ -0,0 +1,13 @@
+//===-- Unittests for rintl -----------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "RIntTest.h"
+
+#include "src/math/rintl.h"
+
+LIST_RINT_TESTS(long double, __llvm_libc::rintl)