Skip to content

Commit

Permalink
sincos: Simplify declaration headers.
Browse files Browse the repository at this point in the history
This follows the same pattern as modf and fract.
Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>

llvm-svn: 356028
  • Loading branch information
jvesely committed Mar 13, 2019
1 parent e7c0c37 commit 4a72599
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions libclc/generic/include/clc/math/sincos.inc
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#define __CLC_DECLARE_SINCOS(ADDRSPACE, TYPE) \
_CLC_OVERLOAD _CLC_DECL TYPE sincos (TYPE x, ADDRSPACE TYPE * cosval);

__CLC_DECLARE_SINCOS(global, __CLC_GENTYPE)
__CLC_DECLARE_SINCOS(local, __CLC_GENTYPE)
__CLC_DECLARE_SINCOS(private, __CLC_GENTYPE)

#undef __CLC_DECLARE_SINCOS
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sincos (__CLC_GENTYPE x, global __CLC_GENTYPE * cosval);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sincos (__CLC_GENTYPE x, local __CLC_GENTYPE * cosval);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sincos (__CLC_GENTYPE x, private __CLC_GENTYPE * cosval);

0 comments on commit 4a72599

Please sign in to comment.