brintos

brintos / llvm-project-archived public Read only

0
0
Text · 693 B · d623434 Raw
21 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#include <clc/utils.h>10 11#define __CLC_HALF_FUNC(x) __CLC_CONCAT(__clc_half_, x)12#define __CLC_NATIVE_FUNC(x) __CLC_CONCAT(__clc_native_, x)13 14_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE15__CLC_HALF_FUNC(__CLC_FUNC)(__CLC_GENTYPE val) {16  return __CLC_NATIVE_FUNC(__CLC_FUNC)(val);17}18 19#undef __CLC_NATIVE_FUNC20#undef __CLC_HALF_FUNC21