diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2019-03-13 07:13:34 +0000 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2019-03-13 07:13:34 +0000 |
commit | 4a725996e5f6688b3177021fb47f0b0570985ce1 (patch) | |
tree | 1797a4d04748a8a1c372aa74c9039d828de60c4d /libclc | |
parent | e7c0c37a315a89f49468efc03a98ed50d262ac74 (diff) | |
download | llvm-4a725996e5f6688b3177021fb47f0b0570985ce1.zip llvm-4a725996e5f6688b3177021fb47f0b0570985ce1.tar.gz llvm-4a725996e5f6688b3177021fb47f0b0570985ce1.tar.bz2 |
sincos: Simplify declaration headers.
This follows the same pattern as modf and fract.
Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 356028
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/generic/include/clc/math/sincos.inc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libclc/generic/include/clc/math/sincos.inc b/libclc/generic/include/clc/math/sincos.inc index 444ac82..423b25f 100644 --- a/libclc/generic/include/clc/math/sincos.inc +++ b/libclc/generic/include/clc/math/sincos.inc @@ -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); |