summaryrefslogtreecommitdiffstats
path: root/libclc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:31 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:31 +0000
commite99ba9a23da7d84d7ae7d82fd5526fc285536989 (patch)
treeebff41b51cc4101e112449151c9da92725d3158e /libclc
parentc708278f13a7bf0f532806d5c66f42087eb152d6 (diff)
downloadbcm5719-llvm-e99ba9a23da7d84d7ae7d82fd5526fc285536989.tar.gz
bcm5719-llvm-e99ba9a23da7d84d7ae7d82fd5526fc285536989.zip
cospi: 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: 317244
Diffstat (limited to 'libclc')
-rw-r--r--libclc/generic/include/clc/math/cospi.h6
-rw-r--r--libclc/generic/include/clc/math/cospi.inc1
2 files changed, 5 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/cospi.h b/libclc/generic/include/clc/math/cospi.h
index 427733bccda..28c7869a855 100644
--- a/libclc/generic/include/clc/math/cospi.h
+++ b/libclc/generic/include/clc/math/cospi.h
@@ -1,3 +1,7 @@
-#define __CLC_BODY <clc/math/cospi.inc>
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION cospi
+
#include <clc/math/gentype.inc>
+
#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/cospi.inc b/libclc/generic/include/clc/math/cospi.inc
deleted file mode 100644
index 1e786cfda6b..00000000000
--- a/libclc/generic/include/clc/math/cospi.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE cospi(__CLC_GENTYPE a);
OpenPOWER on IntegriCloud