[X86] Better handling of impossibly large stack frames (#124217)
[llvm-project.git] / libclc / generic / lib / math / sincos.inc
blobe97f0f9641c1cfba6f49cc18e51e9940e5c6a0a1
1 #define __CLC_DECLARE_SINCOS(ADDRSPACE, TYPE) \
2   _CLC_OVERLOAD _CLC_DEF TYPE sincos (TYPE x, ADDRSPACE TYPE * cosval) { \
3     *cosval = cos(x); \
4     return sin(x); \
5   }
7 __CLC_DECLARE_SINCOS(global, __CLC_GENTYPE)
8 __CLC_DECLARE_SINCOS(local, __CLC_GENTYPE)
9 __CLC_DECLARE_SINCOS(private, __CLC_GENTYPE)
11 #undef __CLC_DECLARE_SINCOS