[libclc] r317246 - lgamma: Use unary_decl instead of custom inc file

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 12:48:35 PDT 2017


Author: jvesely
Date: Thu Nov  2 12:48:35 2017
New Revision: 317246

URL: http://llvm.org/viewvc/llvm-project?rev=317246&view=rev
Log:
lgamma: Use unary_decl instead of custom inc file

Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Reviewed-By: Aaron Watry <awatry at gmail.com>

Removed:
    libclc/trunk/generic/include/clc/math/lgamma.inc
Modified:
    libclc/trunk/generic/include/clc/math/lgamma.h

Modified: libclc/trunk/generic/include/clc/math/lgamma.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/lgamma.h?rev=317246&r1=317245&r2=317246&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/math/lgamma.h (original)
+++ libclc/trunk/generic/include/clc/math/lgamma.h Thu Nov  2 12:48:35 2017
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/lgamma.inc>
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION lgamma
+
 #include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION

Removed: libclc/trunk/generic/include/clc/math/lgamma.inc
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/lgamma.inc?rev=317245&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/lgamma.inc (original)
+++ libclc/trunk/generic/include/clc/math/lgamma.inc (removed)
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE lgamma(__CLC_GENTYPE a);




More information about the cfe-commits mailing list