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