xref: /llvm-project/libc/src/math/generic/nextdownl.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1a2bad758SOverMighty //===-- Implementation of nextdownl function ------------------------------===//
2a2bad758SOverMighty //
3a2bad758SOverMighty // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4a2bad758SOverMighty // See https://llvm.org/LICENSE.txt for license information.
5a2bad758SOverMighty // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6a2bad758SOverMighty //
7a2bad758SOverMighty //===----------------------------------------------------------------------===//
8a2bad758SOverMighty 
9a2bad758SOverMighty #include "src/math/nextdownl.h"
10a2bad758SOverMighty #include "src/__support/FPUtil/ManipulationFunctions.h"
11a2bad758SOverMighty #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
13a2bad758SOverMighty 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
15a2bad758SOverMighty 
16a2bad758SOverMighty LLVM_LIBC_FUNCTION(long double, nextdownl, (long double x)) {
17a2bad758SOverMighty   return fputil::nextupdown</*IsDown=*/true>(x);
18a2bad758SOverMighty }
19a2bad758SOverMighty 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21