[libclc] 103/291: Implement round builtin
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository libclc.
commit dc2569269b07f83390209a8c768e8c85cb163e35
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Mon Nov 18 18:21:27 2013 +0000
Implement round builtin
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@195022 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/include/clc/clc.h | 1 +
generic/include/clc/math/round.h | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index dd4bb29..8f0dbd3 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -48,6 +48,7 @@
#include <clc/math/nextafter.h>
#include <clc/math/pow.h>
#include <clc/math/rint.h>
+#include <clc/math/round.h>
#include <clc/math/sin.h>
#include <clc/math/sqrt.h>
#include <clc/math/native_cos.h>
diff --git a/generic/include/clc/math/round.h b/generic/include/clc/math/round.h
new file mode 100644
index 0000000..43e16ae
--- /dev/null
+++ b/generic/include/clc/math/round.h
@@ -0,0 +1,9 @@
+#undef round
+#define round __clc_round
+
+#define __CLC_FUNCTION __clc_round
+#define __CLC_INTRINSIC "llvm.round"
+#include <clc/math/unary_intrin.inc>
+
+#undef __CLC_FUNCTION
+#undef __CLC_INTRINSIC
--
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