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