summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/shared/clamp.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: Add clamp() builtin for integer/floating pointTom Stellard2013-06-261-0/+3
Created under a new shared/ directory for functions which are available for both integer and floating point types. Patch by: Aaron Watry llvm-svn: 184994
OpenPOWER on IntegriCloud