126687147SSiva Chandra //===-- Implementation of ceill function ----------------------------------===// 226687147SSiva Chandra // 326687147SSiva Chandra // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 426687147SSiva Chandra // See https://llvm.org/LICENSE.txt for license information. 526687147SSiva Chandra // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 626687147SSiva Chandra // 726687147SSiva Chandra //===----------------------------------------------------------------------===// 826687147SSiva Chandra 926687147SSiva Chandra #include "src/math/ceill.h" 10c120edc7SMichael Jones #include "src/__support/FPUtil/NearestIntegerOperations.h" 1126687147SSiva Chandra #include "src/__support/common.h" 12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 1326687147SSiva Chandra 14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 1526687147SSiva Chandra 1626687147SSiva Chandra LLVM_LIBC_FUNCTION(long double, ceill, (long double x)) { 1726687147SSiva Chandra return fputil::ceil(x); 1826687147SSiva Chandra } 1926687147SSiva Chandra 20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 21