Files
clang-p2996/libclc/generic/lib/math
Aaron Watry 947bdd059a 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
2014-09-10 15:43:35 +00:00
..
2014-09-10 15:43:29 +00:00
2014-09-10 15:43:29 +00:00
2014-09-10 15:43:32 +00:00
2014-09-10 15:43:32 +00:00
2014-07-23 15:16:16 +00:00
2014-07-23 15:16:13 +00:00
2014-09-03 15:55:38 +00:00
2014-07-23 15:16:18 +00:00
2014-06-25 10:06:35 +00:00
2014-06-25 10:06:35 +00:00
2014-07-23 15:16:13 +00:00
2014-06-16 19:53:59 +00:00
2014-06-16 19:53:59 +00:00
2014-07-23 15:16:21 +00:00
2014-09-10 15:43:35 +00:00
2014-09-10 15:43:35 +00:00