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

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

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