summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2014-09-10 15:43:35 +0000
committerAaron Watry <awatry@gmail.com>2014-09-10 15:43:35 +0000
commit947bdd059a768ba2a7cec083270f46d856f2b667 (patch)
tree392a473dda138e4e6e115622787c98b6da9f78e5 /llvm/lib/Transforms
parent951ab64d19f275445b18ac6751e8f64f63866f82 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud