[libclc] 34/79: half_sin: Implement using sin
Andreas Boll
aboll-guest at moszumanska.debian.org
Mon Mar 19 16:50:58 UTC 2018
This is an automated email from the git hooks/post-receive script.
aboll-guest pushed a commit to branch master
in repository libclc.
commit 8c3ada2342350b51bb7a55f8256d72e3ddbd9a13
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Thu Jan 18 21:12:01 2018 +0000
half_sin: Implement using sin
Passes CTS on carrizo
v2: Use full precision implementation
Reviewer: Jeroen Ketema <j.ketema at xs4all.nl>
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@322897 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/include/clc/clc.h | 1 +
generic/include/clc/math/half_sin.h | 9 +++++++++
generic/lib/SOURCES | 1 +
generic/lib/math/half_sin.cl | 6 ++++++
4 files changed, 17 insertions(+)
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index 8be8b38..4431db6 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -79,6 +79,7 @@
#include <clc/math/half_log2.h>
#include <clc/math/half_recip.h>
#include <clc/math/half_rsqrt.h>
+#include <clc/math/half_sin.h>
#include <clc/math/half_sqrt.h>
#include <clc/math/hypot.h>
#include <clc/math/ilogb.h>
diff --git a/generic/include/clc/math/half_sin.h b/generic/include/clc/math/half_sin.h
new file mode 100644
index 0000000..8ab7d17
--- /dev/null
+++ b/generic/include/clc/math/half_sin.h
@@ -0,0 +1,9 @@
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION half_sin
+#define __FLOAT_ONLY
+
+#include <clc/math/gentype.inc>
+
+#undef __FLOAT_ONLY
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/generic/lib/SOURCES b/generic/lib/SOURCES
index ee28690..477d1e6 100644
--- a/generic/lib/SOURCES
+++ b/generic/lib/SOURCES
@@ -113,6 +113,7 @@ math/half_log10.cl
math/half_log2.cl
math/half_recip.cl
math/half_rsqrt.cl
+math/half_sin.cl
math/half_sqrt.cl
math/hypot.cl
math/ilogb.cl
diff --git a/generic/lib/math/half_sin.cl b/generic/lib/math/half_sin.cl
new file mode 100644
index 0000000..a64eec9
--- /dev/null
+++ b/generic/lib/math/half_sin.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC sin
+#define __CLC_BODY <half_unary.inc>
+#define __FLOAT_ONLY
+#include <clc/math/gentype.inc>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list