1// TODO: Enable half precision when sin/cos is implemented 2#if __CLC_FPSIZE > 16 3#define __CLC_DECLARE_SINCOS(ADDRSPACE, TYPE) \ 4 _CLC_OVERLOAD _CLC_DEF TYPE sincos (TYPE x, ADDRSPACE TYPE * cosval) { \ 5 *cosval = cos(x); \ 6 return sin(x); \ 7 } 8 9__CLC_DECLARE_SINCOS(global, __CLC_GENTYPE) 10__CLC_DECLARE_SINCOS(local, __CLC_GENTYPE) 11__CLC_DECLARE_SINCOS(private, __CLC_GENTYPE) 12 13#undef __CLC_DECLARE_SINCOS 14#endif 15