acos: Use unary_decl instead of custom inc file
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 2 Nov 2017 19:48:06 +0000 (19:48 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 2 Nov 2017 19:48:06 +0000 (19:48 +0000)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-By: Aaron Watry <awatry@gmail.com>
llvm-svn: 317232

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

index e753dee..afb6014 100644 (file)
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/acos.inc>
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION acos
+
 #include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/acos.inc b/libclc/generic/include/clc/math/acos.inc
deleted file mode 100644 (file)
index 4ca8c75..0000000
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE acos(__CLC_GENTYPE x);