summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/math
Commit message (Collapse)AuthorAgeFilesLines
...
* Add __CLC_ prefix to all macro definitions in headersTom Stellard2013-07-0822-123/+123
| | | | | | | | | | | 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 the min(vec, scalar) version of the min builtin.Tom Stellard2013-06-261-0/+8
| | | | | | | | | | Checks if the current GENTYPE is scalar, and if not, then defines a separate implementation of the function which casts the second arg to vector before proceeding. Patch by: Aaron Watry llvm-svn: 185002
* libclc: Move max builtin to shared/Tom Stellard2013-06-262-3/+0
| | | | | | | | Max(x,y) is available for all integer/floating types. Patch by: Aaron Watry llvm-svn: 184995
* libclc: Add max() builtin functionTom Stellard2013-06-262-0/+3
| | | | | | | | Adds this function for both int and floating data types. Patch by: Aaron Watry llvm-svn: 184992
* Implement ceil() builtinTom Stellard2013-06-261-0/+6
| | | | llvm-svn: 184988
* Implement fmax() and fmin() builtinsTom Stellard2013-06-264-0/+32
| | | | llvm-svn: 184987
* Add native_powr builtin. Patch by Tom Stellard!Peter Collingbourne2012-10-081-0/+1
| | | | llvm-svn: 165385
* Add rsqrt builtin. Based on patch by Cassie Epps!Peter Collingbourne2012-08-211-0/+1
| | | | llvm-svn: 162274
* Add floor builtin. Patch by Cassie Epps!Peter Collingbourne2012-08-211-0/+6
| | | | llvm-svn: 162273
* Add pow builtin.Peter Collingbourne2012-05-292-0/+24
| | | | llvm-svn: 157629
* Add fma, hypot builtins.Peter Collingbourne2012-05-294-0/+27
| | | | llvm-svn: 157613
* Implement mad builtin.Peter Collingbourne2012-05-293-0/+54
| | | | llvm-svn: 157599
* Implement exp, exp2, log, log2, native_exp, native_exp2, native_log,Peter Collingbourne2012-05-298-0/+24
| | | | | | native_log2. Patch by Joshua Cranmer! llvm-svn: 157598
* Add fabs builtin.Peter Collingbourne2012-05-281-0/+6
| | | | llvm-svn: 157595
* Initial commit.Peter Collingbourne2012-01-089-0/+41
llvm-svn: 147756
OpenPOWER on IntegriCloud