summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/asin.cl
Commit message (Collapse)AuthorAgeFilesLines
* Move cl_khr_fp64 exntension enablement to gentype include listsJan Vesely2018-03-061-4/+0
| | | | | | | | This will make adding cl_khr_fp16 support easier Reviewed-by: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 326816
* math: Add asin implementationAaron Watry2014-09-101-0/+8
asin(x) = atan2(x, sqrt( 1-x^2 )) alternatively: asin(x) = PI/2 - acos(x) Use the atan2 implementation since it produces slightly shorter bitcode and R600 machine code. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 217510
OpenPOWER on IntegriCloud