[libclc] 54/291: Add a another TODO note.
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:32 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 7a2f843ed11f41c55b94c57769e9987457979cf0
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Wed Jun 26 18:21:25 2013 +0000
Add a another TODO note.
Patch by: Aaron Watry
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184999 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/lib/integer/rotate.inc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/generic/lib/integer/rotate.inc b/generic/lib/integer/rotate.inc
index b34ffed..2aa6cc9 100644
--- a/generic/lib/integer/rotate.inc
+++ b/generic/lib/integer/rotate.inc
@@ -27,6 +27,9 @@ _CLC_OVERLOAD _CLC_DEF GENTYPE rotate(GENTYPE x, GENTYPE n){
UGENTYPE x_1 = __builtin_astype(x, UGENTYPE);
+ //XXX: Is (UGENTYPE >> SGENTYPE) | (UGENTYPE << SGENTYPE) legal?
+ // If so, then combine the amt and shifts into a single set of statements
+
UGENTYPE amt;
amt = (n < (GENTYPE)0 ? __builtin_astype((GENTYPE)0-n, UGENTYPE) : (UGENTYPE)0);
x_1 = (x_1 >> amt) | (x_1 << ((UGENTYPE)GENSIZE - amt));
--
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