summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/integer/rotate.cl
Commit message (Collapse)AuthorAgeFilesLines
* Add __CLC_ prefix to all macro definitions in headersTom Stellard2013-07-081-1/+1
| | | | | | | | | | | libclc was defining and undefing GENTYPE and several other macros with common names in its header files. This was preventing applications from defining macros with identical names as command line arguments to the compiler, because the definitions in the header files were masking the macros defined as compiler arguements. Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 185838
* libclc: implement rotate builtinTom Stellard2013-06-261-0/+4
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 llvm-svn: 184996
OpenPOWER on IntegriCloud