xref: /llvm-project/libc/src/math/generic/fmodf16.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
10cdb0b74SOverMighty //===-- Implementation of fmodf16 function --------------------------------===//
20cdb0b74SOverMighty //
30cdb0b74SOverMighty // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40cdb0b74SOverMighty // See https://llvm.org/LICENSE.txt for license information.
50cdb0b74SOverMighty // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60cdb0b74SOverMighty //
70cdb0b74SOverMighty //===----------------------------------------------------------------------===//
80cdb0b74SOverMighty 
90cdb0b74SOverMighty #include "src/math/fmodf16.h"
100cdb0b74SOverMighty #include "src/__support/FPUtil/generic/FMod.h"
110cdb0b74SOverMighty #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
130cdb0b74SOverMighty 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
150cdb0b74SOverMighty 
160cdb0b74SOverMighty LLVM_LIBC_FUNCTION(float16, fmodf16, (float16 x, float16 y)) {
170cdb0b74SOverMighty   return fputil::generic::FMod<float16, uint32_t>::eval(x, y);
180cdb0b74SOverMighty }
190cdb0b74SOverMighty 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21