[libclc] r356011 - mad: Convert to standard ternary header

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 13 00:05:54 PDT 2019


Author: jvesely
Date: Wed Mar 13 00:05:53 2019
New Revision: 356011

URL: http://llvm.org/viewvc/llvm-project?rev=356011&view=rev
Log:
mad: Convert to standard ternary header

Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

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

Modified: libclc/trunk/generic/include/clc/math/mad.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/mad.h?rev=356011&r1=356010&r2=356011&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/math/mad.h (original)
+++ libclc/trunk/generic/include/clc/math/mad.h Wed Mar 13 00:05:53 2019
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/mad.inc>
+#define __CLC_BODY <clc/math/ternary_decl.inc>
+#define __CLC_FUNCTION mad
+
 #include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION

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




More information about the cfe-commits mailing list