17 lines · plain
1//===----------------------------------------------------------------------===//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-exception6//7//===----------------------------------------------------------------------===//8 9_CLC_DEF _CLC_OVERLOAD __CLC_GENTYPE __clc_fma(__CLC_GENTYPE a, __CLC_GENTYPE b,10 __CLC_GENTYPE c) {11#if __CLC_FPSIZE == 3212 if (!__CLC_HAVE_HW_FMA32())13 return __clc_sw_fma(a, b, c);14#endif15 return __builtin_elementwise_fma(a, b, c);16}17