1//===-- Implementation header for f16fmaf128 --------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_SRC___SUPPORT_MATH_F16FMAF128_H
10#define LLVM_LIBC_SRC___SUPPORT_MATH_F16FMAF128_H
11
12#include "include/llvm-libc-macros/float16-macros.h"
13#include "include/llvm-libc-types/float128.h"
14
15#ifdef LIBC_TYPES_HAS_FLOAT128
16#ifdef LIBC_TYPES_HAS_FLOAT16
17
18#include "src/__support/FPUtil/FMA.h"
19#include "src/__support/common.h"
20#include "src/__support/macros/config.h"
21
22namespace LIBC_NAMESPACE_DECL {
23
24namespace math {
25
26LIBC_INLINE float16 f16fmaf128(float128 x, float128 y, float128 z) {
27 return fputil::fma<float16>(x, y, z);
28}
29
30} // namespace math
31
32} // namespace LIBC_NAMESPACE_DECL
33
34#endif // LIBC_TYPES_HAS_FLOAT16
35#endif // LIBC_TYPES_HAS_FLOAT128
36
37#endif // LLVM_LIBC_SRC___SUPPORT_MATH_F16FMAF128_H
38