brintos

brintos / llvm-project-archived public Read only

0
0
Text · 951 B · da5059b Raw
23 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#define __CLC_DECLARE_SINCOS(ADDRSPACE, TYPE)                                  \10  _CLC_OVERLOAD _CLC_DEF TYPE __clc_sincos(TYPE x, ADDRSPACE TYPE *cosval) {   \11    *cosval = __clc_cos(x);                                                    \12    return __clc_sin(x);                                                       \13  }14 15__CLC_DECLARE_SINCOS(global, __CLC_GENTYPE)16__CLC_DECLARE_SINCOS(local, __CLC_GENTYPE)17__CLC_DECLARE_SINCOS(private, __CLC_GENTYPE)18#if _CLC_DISTINCT_GENERIC_AS_SUPPORTED19__CLC_DECLARE_SINCOS(generic, __CLC_GENTYPE)20#endif21 22#undef __CLC_DECLARE_SINCOS23