summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-05-21 08:50:39 -0700
committerTom Stellard <thomas.stellard@amd.com>2013-05-21 08:50:39 -0700
commit452d441052e7a29c1cebba3c1de0128438baa3d9 (patch)
tree112e86bf91580a66f00ffdc9cf35bcb8bed90915
parent5bbff546f1224ef87e3897cc76fdaf1f69fa4733 (diff)
Add missing file
-rw-r--r--rotl.cl4
1 files changed, 4 insertions, 0 deletions
diff --git a/rotl.cl b/rotl.cl
new file mode 100644
index 0000000..cabb752
--- /dev/null
+++ b/rotl.cl
@@ -0,0 +1,4 @@
+__kernel void rotl(__global int * out, unsigned arg0, unsigned arg1)
+{
+ out[0] = (arg0 << arg1) | (arg0 >> (32 - arg1));
+}