Skip to content
Commit 951ab64d authored by Aaron Watry's avatar Aaron Watry
Browse files

math: Add asin implementation



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: default avatarAaron Watry <awatry@gmail.com>
Reviewed-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 217510
parent 268beab9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment