Skip to content
Commit 947bdd05 authored by Aaron Watry's avatar Aaron Watry
Browse files

math: Add tan implementation



Uses the algorithm:
tan(x) = sin(x) / sqrt(1-sin^2(x))

An alternative is:
tan(x) = sin(x) / cos(x)

Which produces more verbose bitcode and longer assembly.

Either way, the generated bitcode seems pretty nasty and a more optimized
but still precise-enough solution is welcome.

Signed-off-by: default avatarAaron Watry <awatry@gmail.com>
Reviewed-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 217511
parent 951ab64d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment