[libclc] 44/92: ptx: Use __clc_nextafter to implement nextafter
Andreas Boll
aboll-guest at moszumanska.debian.org
Mon Nov 6 15:11:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
aboll-guest pushed a commit to branch master
in repository libclc.
commit 129de63ea69f5b9274c12680c8cd523e7823903f
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Sun Oct 8 19:34:00 2017 +0000
ptx: Use __clc_nextafter to implement nextafter
using clang builtin results in external library call
Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@315191 91177308-0d34-0410-b5e6-96231b3b80d8
---
ptx/lib/SOURCES | 1 +
ptx/lib/math/nextafter.cl | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/ptx/lib/SOURCES b/ptx/lib/SOURCES
new file mode 100644
index 0000000..ff5bff2
--- /dev/null
+++ b/ptx/lib/SOURCES
@@ -0,0 +1 @@
+math/nextafter.cl
diff --git a/ptx/lib/math/nextafter.cl b/ptx/lib/math/nextafter.cl
new file mode 100644
index 0000000..5b4521d
--- /dev/null
+++ b/ptx/lib/math/nextafter.cl
@@ -0,0 +1,10 @@
+#include <clc/clc.h>
+#include "../lib/clcmacro.h"
+#include <math/clc_nextafter.h>
+
+_CLC_DEFINE_BINARY_BUILTIN(float, nextafter, __clc_nextafter, float, float)
+
+#ifdef cl_khr_fp64
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
+_CLC_DEFINE_BINARY_BUILTIN(double, nextafter, __clc_nextafter, double, double)
+#endif
--
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