path: root/generic/include/clc/integer/rotate.h
diff options
authorTom Stellard <>2013-06-26 18:21:13 +0000
committerTom Stellard <>2013-06-26 18:21:13 +0000
commitf1bf4b8307660f83653a5cab6f6fe1567a58f4a1 (patch)
tree886814a1e763ef9d0eb1371b527960df746a575a /generic/include/clc/integer/rotate.h
parent15ba684e4eb0d73bc208766869161f0af1f120ee (diff)
libclc: implement rotate builtin
This implementation does a lot of bit shifting and masking. Suffice to say, this is somewhat suboptimal... but it does look to produce correct results (after the piglit tests were corrected for sign extension issues). Someone who knows LLVM better than I could re-write this more efficiently. Patch by: Aaron Watry git-svn-id: 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/include/clc/integer/rotate.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/include/clc/integer/rotate.h b/generic/include/clc/integer/rotate.h
new file mode 100644
index 0000000..e163bc8
--- /dev/null
+++ b/generic/include/clc/integer/rotate.h
@@ -0,0 +1,2 @@
+#define BODY <clc/integer/>
+#include <clc/integer/>