diff options
author | Aaron Watry <awatry@gmail.com> | 2014-09-10 15:43:35 +0000 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2014-09-10 15:43:35 +0000 |
commit | 947bdd059a768ba2a7cec083270f46d856f2b667 (patch) | |
tree | 392a473dda138e4e6e115622787c98b6da9f78e5 /llvm/lib/Transforms | |
parent | 951ab64d19f275445b18ac6751e8f64f63866f82 (diff) | |
download | bcm5719-llvm-947bdd059a768ba2a7cec083270f46d856f2b667.tar.gz bcm5719-llvm-947bdd059a768ba2a7cec083270f46d856f2b667.zip |
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: Aaron Watry <awatry@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 217511
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions