diff options
Diffstat (limited to 'libc/src/math/generic/ceil.cpp')
-rw-r--r-- | libc/src/math/generic/ceil.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/src/math/generic/ceil.cpp b/libc/src/math/generic/ceil.cpp new file mode 100644 index 000000000000..7c59c938acff --- /dev/null +++ b/libc/src/math/generic/ceil.cpp @@ -0,0 +1,17 @@ +//===-- Implementation of ceil function -----------------------------------===// +// +// 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/ceil.h" +#include "src/__support/common.h" +#include "utils/FPUtil/NearestIntegerOperations.h" + +namespace __llvm_libc { + +LLVM_LIBC_FUNCTION(double, ceil, (double x)) { return fputil::ceil(x); } + +} // namespace __llvm_libc |