summaryrefslogtreecommitdiffstats
path: root/libclc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:15 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:15 +0000
commitba4b98c6916d6dbcf80f130b4a57a9958b24e497 (patch)
tree35aad1069ef90f1fedbf0259076a37b186b4a1dc /libclc
parent61171847b75be0648e00d0a2a1f64f1a1c8259bd (diff)
downloadbcm5719-llvm-ba4b98c6916d6dbcf80f130b4a57a9958b24e497.tar.gz
bcm5719-llvm-ba4b98c6916d6dbcf80f130b4a57a9958b24e497.zip
asin: Use unary_decl instead of custom inc file
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-By: Aaron Watry <awatry@gmail.com> llvm-svn: 317235
Diffstat (limited to 'libclc')
-rw-r--r--libclc/generic/include/clc/math/asin.h7
-rw-r--r--libclc/generic/include/clc/math/asin.inc1
2 files changed, 6 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/asin.h b/libclc/generic/include/clc/math/asin.h
index 2a858721e95..bd6c1b1a784 100644
--- a/libclc/generic/include/clc/math/asin.h
+++ b/libclc/generic/include/clc/math/asin.h
@@ -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
index b4ad8ff1231..00000000000
--- a/libclc/generic/include/clc/math/asin.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE asin(__CLC_GENTYPE x);
OpenPOWER on IntegriCloud