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:16 +00:00
2014-07-23 15:16:13 +00:00
2014-07-23 15:16:13 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2013-10-10 19:08:51 +00:00
2014-09-03 15:55:38 +00:00
2014-09-03 15:55:38 +00:00
2014-07-23 15:16:18 +00:00
2014-07-23 15:16:18 +00:00
2013-07-08 17:27:02 +00:00
2014-06-25 10:06:35 +00:00
2014-06-13 09:40:09 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2014-06-13 09:40:09 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00
2014-06-16 19:53:59 +00:00
2014-06-16 19:53:59 +00:00
2014-06-25 10:06:35 +00:00
2013-10-10 19:08:51 +00:00
2013-07-08 17:27:02 +00:00
2014-06-18 19:42:23 +00:00
2013-08-10 03:40:33 +00:00
2013-11-18 18:21:27 +00:00
2014-07-23 15:16:21 +00:00
2014-07-23 15:16:21 +00:00
2014-03-21 16:22:01 +00:00
2014-03-21 16:22:01 +00:00
2013-07-08 17:27:02 +00:00
2014-09-10 15:43:35 +00:00
2014-09-10 15:43:35 +00:00
2013-07-08 17:27:02 +00:00
2013-12-20 02:08:46 +00:00
2013-07-08 17:27:02 +00:00
2013-07-08 17:27:02 +00:00