xref: /llvm-project/libc/src/math/generic/floorf128.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
16ba9d298Slntue //===-- Implementation of floorf128 function ------------------------------===//
26ba9d298Slntue //
36ba9d298Slntue // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
46ba9d298Slntue // See https://llvm.org/LICENSE.txt for license information.
56ba9d298Slntue // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66ba9d298Slntue //
76ba9d298Slntue //===----------------------------------------------------------------------===//
86ba9d298Slntue 
96ba9d298Slntue #include "src/math/floorf128.h"
106ba9d298Slntue #include "src/__support/FPUtil/NearestIntegerOperations.h"
116ba9d298Slntue #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
136ba9d298Slntue 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
156ba9d298Slntue 
166ba9d298Slntue LLVM_LIBC_FUNCTION(float128, floorf128, (float128 x)) {
176ba9d298Slntue   return fputil::floor(x);
186ba9d298Slntue }
196ba9d298Slntue 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21