diff options
-rw-r--r-- | rotl.cl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -0,0 +1,4 @@ +__kernel void rotl(__global int * out, unsigned arg0, unsigned arg1) +{ + out[0] = (arg0 << arg1) | (arg0 >> (32 - arg1)); +} |
index : ~tstellar/opencl-example | ||
Simple OpenCL example program for testing Clover. | tstellar |
summaryrefslogtreecommitdiff |
-rw-r--r-- | rotl.cl | 4 |
@@ -0,0 +1,4 @@ +__kernel void rotl(__global int * out, unsigned arg0, unsigned arg1) +{ + out[0] = (arg0 << arg1) | (arg0 >> (32 - arg1)); +} |