[libclc] r356022 - hypot: Use binary_decl_tt.inc instead of custom inc file
Jan Vesely via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 13 00:13:22 PDT 2019
Author: jvesely
Date: Wed Mar 13 00:13:22 2019
New Revision: 356022
URL: http://llvm.org/viewvc/llvm-project?rev=356022&view=rev
Log:
hypot: Use binary_decl_tt.inc instead of custom inc file
Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Removed:
libclc/trunk/generic/include/clc/math/hypot.inc
Modified:
libclc/trunk/generic/include/clc/math/hypot.h
Modified: libclc/trunk/generic/include/clc/math/hypot.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/hypot.h?rev=356022&r1=356021&r2=356022&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/math/hypot.h (original)
+++ libclc/trunk/generic/include/clc/math/hypot.h Wed Mar 13 00:13:22 2019
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/hypot.inc>
+#define __CLC_FUNCTION hypot
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
+
#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
Removed: libclc/trunk/generic/include/clc/math/hypot.inc
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/hypot.inc?rev=356021&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/hypot.inc (original)
+++ libclc/trunk/generic/include/clc/math/hypot.inc (removed)
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE hypot(__CLC_GENTYPE x, __CLC_GENTYPE y);
More information about the cfe-commits
mailing list