summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2015-05-06 21:59:26 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2015-05-06 21:59:26 +0000
commitbc81ebefb7d9d9d71d20bfee2ce4cccb09701e9b (patch)
tree576d794b04e7058ad9cce047f7845293abacd2f9 /libclc/generic/include/clc
parent087638b3a6efb1b6b3cc17bd406c87f1b472ea05 (diff)
downloadbcm5719-llvm-bc81ebefb7d9d9d71d20bfee2ce4cccb09701e9b.tar.gz
bcm5719-llvm-bc81ebefb7d9d9d71d20bfee2ce4cccb09701e9b.zip
Implement sinpi builtin
Ported from AMD builtin library, passes piglit on Turks. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 236647
Diffstat (limited to 'libclc/generic/include/clc')
-rw-r--r--libclc/generic/include/clc/clc.h1
-rw-r--r--libclc/generic/include/clc/math/sinpi.h3
-rw-r--r--libclc/generic/include/clc/math/sinpi.inc1
3 files changed, 5 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/clc.h b/libclc/generic/include/clc/clc.h
index d4ef7a8bd58..46135af0e63 100644
--- a/libclc/generic/include/clc/clc.h
+++ b/libclc/generic/include/clc/clc.h
@@ -72,6 +72,7 @@
#include <clc/math/round.h>
#include <clc/math/sin.h>
#include <clc/math/sincos.h>
+#include <clc/math/sinpi.h>
#include <clc/math/sqrt.h>
#include <clc/math/tan.h>
#include <clc/math/trunc.h>
diff --git a/libclc/generic/include/clc/math/sinpi.h b/libclc/generic/include/clc/math/sinpi.h
new file mode 100644
index 00000000000..390897673a4
--- /dev/null
+++ b/libclc/generic/include/clc/math/sinpi.h
@@ -0,0 +1,3 @@
+#define __CLC_BODY <clc/math/sinpi.inc>
+#include <clc/math/gentype.inc>
+#undef __CLC_BODY
diff --git a/libclc/generic/include/clc/math/sinpi.inc b/libclc/generic/include/clc/math/sinpi.inc
new file mode 100644
index 00000000000..f0c872a287d
--- /dev/null
+++ b/libclc/generic/include/clc/math/sinpi.inc
@@ -0,0 +1 @@
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sinpi(__CLC_GENTYPE a);
OpenPOWER on IntegriCloud