mad: Convert to standard ternary header
authorJan Vesely <jan.vesely@rutgers.edu>
Wed, 13 Mar 2019 07:05:53 +0000 (07:05 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Wed, 13 Mar 2019 07:05:53 +0000 (07:05 +0000)
Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 356011

libclc/generic/include/clc/math/mad.h
libclc/generic/include/clc/math/mad.inc [deleted file]

index c4e5084..99b6484 100644 (file)
@@ -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
diff --git a/libclc/generic/include/clc/math/mad.inc b/libclc/generic/include/clc/math/mad.inc
deleted file mode 100644 (file)
index 61194b6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mad(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c);