[libclc] 27/79: half_exp: Implement using exp

Andreas Boll aboll-guest at moszumanska.debian.org
Mon Mar 19 16:50:57 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 6b9ebbd26f29a93d3621bc6c67ce2143c82a4583
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date:   Thu Jan 18 21:11:43 2018 +0000

    half_exp: Implement using exp
    
    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@322890 91177308-0d34-0410-b5e6-96231b3b80d8
---
 generic/include/clc/clc.h           | 1 +
 generic/include/clc/math/half_exp.h | 9 +++++++++
 generic/lib/SOURCES                 | 1 +
 generic/lib/math/half_exp.cl        | 6 ++++++
 4 files changed, 17 insertions(+)

diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index 6f2bc6d..25119e0 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -71,6 +71,7 @@
 #include <clc/math/fract.h>
 #include <clc/math/frexp.h>
 #include <clc/math/half_cos.h>
+#include <clc/math/half_exp.h>
 #include <clc/math/half_rsqrt.h>
 #include <clc/math/half_sqrt.h>
 #include <clc/math/hypot.h>
diff --git a/generic/include/clc/math/half_exp.h b/generic/include/clc/math/half_exp.h
new file mode 100644
index 0000000..36b277e
--- /dev/null
+++ b/generic/include/clc/math/half_exp.h
@@ -0,0 +1,9 @@
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION half_exp
+#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 20c7970..72c9644 100644
--- a/generic/lib/SOURCES
+++ b/generic/lib/SOURCES
@@ -105,6 +105,7 @@ math/fmod.cl
 math/fract.cl
 math/frexp.cl
 math/half_cos.cl
+math/half_exp.cl
 math/half_rsqrt.cl
 math/half_sqrt.cl
 math/hypot.cl
diff --git a/generic/lib/math/half_exp.cl b/generic/lib/math/half_exp.cl
new file mode 100644
index 0000000..97da5d6
--- /dev/null
+++ b/generic/lib/math/half_exp.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC exp
+#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