[libclc] 65/291: Add bitselect() builtin
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:34 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 a3c59c98a5ae7d4af0c2ac0194422a466a8891cc
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Mon Jul 8 17:26:33 2013 +0000
Add bitselect() builtin
Reviewed-By: Aaron Watry <awatry at gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@185836 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/include/clc/clc.h | 1 +
generic/include/clc/relational/bitselect.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index 10d30e0..1ce97ad 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -82,6 +82,7 @@
/* 6.11.6 Relational Functions */
#include <clc/relational/any.h>
+#include <clc/relational/bitselect.h>
#include <clc/relational/select.h>
/* 6.11.8 Synchronization Functions */
diff --git a/generic/include/clc/relational/bitselect.h b/generic/include/clc/relational/bitselect.h
new file mode 100644
index 0000000..e91cbfd
--- /dev/null
+++ b/generic/include/clc/relational/bitselect.h
@@ -0,0 +1 @@
+#define bitselect(x, y, z) ((x) ^ ((z) & ((y) ^ (x))))
--
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