[libclc] 03/79: native_log10: Switch to generic native intrinsic inc file
Andreas Boll
aboll-guest at moszumanska.debian.org
Mon Mar 19 16:50:54 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 d881f246e13786f12daae83e8afb596ad16efdb3
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Fri Nov 10 22:16:22 2017 +0000
native_log10: Switch to generic native intrinsic inc file
Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@317934 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/lib/math/native_log10.cl | 7 ++-----
generic/lib/math/native_log10.inc | 3 ---
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/generic/lib/math/native_log10.cl b/generic/lib/math/native_log10.cl
index 9741daa..d69b7b6 100644
--- a/generic/lib/math/native_log10.cl
+++ b/generic/lib/math/native_log10.cl
@@ -1,10 +1,7 @@
#include <clc/clc.h>
-#define __CLC_FUNCTION __clc_native_log10
-#define __CLC_INTRINSIC "llvm.log10"
-#undef cl_khr_fp64
-#include <clc/math/unary_intrin.inc>
+#define __CLC_NATIVE_INTRINSIC log10
-#define __CLC_BODY <native_log10.inc>
+#define __CLC_BODY <native_unary_intrinsic.inc>
#define __FLOAT_ONLY
#include <clc/math/gentype.inc>
diff --git a/generic/lib/math/native_log10.inc b/generic/lib/math/native_log10.inc
deleted file mode 100644
index a2f3d1a..0000000
--- a/generic/lib/math/native_log10.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE native_log10(__CLC_GENTYPE val) {
- return __clc_native_log10(val);
-}
--
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