summaryrefslogtreecommitdiff
path: root/src/math/nvptx/ceilf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/nvptx/ceilf.cpp')
-rw-r--r--src/math/nvptx/ceilf.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/math/nvptx/ceilf.cpp b/src/math/nvptx/ceilf.cpp
new file mode 100644
index 000000000000..c4fc58d93603
--- /dev/null
+++ b/src/math/nvptx/ceilf.cpp
@@ -0,0 +1,16 @@
+//===-- Implementation of the ceilf function for GPU ----------------------===//
+//
+// 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 "src/math/ceilf.h"
+#include "src/__support/common.h"
+
+namespace LIBC_NAMESPACE {
+
+LLVM_LIBC_FUNCTION(float, ceilf, (float x)) { return __builtin_ceilf(x); }
+
+} // namespace LIBC_NAMESPACE