aboutsummaryrefslogtreecommitdiff
path: root/libc/src/math/rintl.h
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/src/math/rintl.h
parent981a0bd85811fe49379fdbef35528e2c2f3511a3 (diff)
downloadllvm-ff6fd3855244bc90094e7de3f07853a5971cf8ef.zip
llvm-ff6fd3855244bc90094e7de3f07853a5971cf8ef.tar.gz
llvm-ff6fd3855244bc90094e7de3f07853a5971cf8ef.tar.bz2
[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/src/math/rintl.h')
-rw-r--r--libc/src/math/rintl.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/src/math/rintl.h b/libc/src/math/rintl.h
new file mode 100644
index 0000000..2bf095d
--- /dev/null
+++ b/libc/src/math/rintl.h
@@ -0,0 +1,18 @@
+//===-- Implementation header for rintl -------------------------*- C++ -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_MATH_RINTL_H
+#define LLVM_LIBC_SRC_MATH_RINTL_H
+
+namespace __llvm_libc {
+
+long double rintl(long double x);
+
+} // namespace __llvm_libc
+
+#endif // LLVM_LIBC_SRC_MATH_RINTL_H