summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/math
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/math
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/math')
-rw-r--r--libclc/generic/include/clc/math/sinpi.h3
-rw-r--r--libclc/generic/include/clc/math/sinpi.inc1
2 files changed, 4 insertions, 0 deletions
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