summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
+}