[Libclc-dev] [PATCH 7/7] sincos: Simplify declaration headers.

Jan Vesely via Libclc-dev libclc-dev at lists.llvm.org
Tue Mar 12 10:17:52 PDT 2019


This follows the same pattern as lgamma_r.
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 generic/include/clc/math/sincos.inc | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/generic/include/clc/math/sincos.inc b/generic/include/clc/math/sincos.inc
index 444ac82..423b25f 100644
--- a/generic/include/clc/math/sincos.inc
+++ b/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);
-- 
2.19.2



More information about the Libclc-dev mailing list