summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/shared/max.inc
Commit message (Collapse)AuthorAgeFilesLines
* Add __CLC_ prefix to all macro definitions in headersTom Stellard2013-07-081-5/+5
| | | | | | | | | | | 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: Add clamp(vec, scalar, scalar) and max(vec, scalar)Tom Stellard2013-06-261-0/+6
| | | | | | | | | | | For any GENTYPE that isn't scalar, we need to implement a mixed vector/scalar version of clamp/max. This depends on the min() patches I sent to the list a few minutes ago. Patch by: Aaron Watry llvm-svn: 185003
* libclc: Move max builtin to shared/Tom Stellard2013-06-261-0/+3
Max(x,y) is available for all integer/floating types. Patch by: Aaron Watry llvm-svn: 184995
OpenPOWER on IntegriCloud