aboutsummaryrefslogtreecommitdiff
path: root/libc/src/math/gpu/fma.cpp
blob: f3803af1ceb0bec294f066689e5eb2e4e9605fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//===-- Implementation of the fma function for GPU ------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "src/math/fma.h"
#include "src/__support/common.h"

namespace __llvm_libc {

LLVM_LIBC_FUNCTION(double, fma, (double x, double y, double z)) {
  return __builtin_fma(x, y, z);
}

} // namespace __llvm_libc