summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/math/clc_sqrt.h
Commit message (Collapse)AuthorAgeFilesLines
* clc_sqrt: Reuse unary_decl.incJan Vesely2018-05-021-27/+3
| | | | | | | Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Aaron Watry <awatry@gmail.com> Tested-by: Aaron Watry <awatry@gmail.com> llvm-svn: 331366
* Fix implementation of sqrt v2Tom Stellard2015-07-101-0/+29
Passing values less than 0 to the llvm.sqrt() intrinsic results in undefined behavior, so we need to check the input and return NaN if is is less than 0. v2: - Fix build failures. llvm-svn: 241906
OpenPOWER on IntegriCloud