summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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