Add explicit asin() computation.

Bug: 20729963
Bug: 20480098

Add Taylor-series-based asin() and straightforward acos().

Add tests for the above.  We check the new implementation against
the old one, among other things.

Add public ZERO and ONE constants.

Although it's much less elegant, this is significantly faster than
the old inverse(sin) computation.  It seems to reduce typical arcsin
computations from small numbers of 100s of msecs to small numbers of
10s of milliseconds.  That's still not exactly speedy, but should
be fast enough.

This has the added benefit that the Taylor series computation should
be easily amenable to odd-/even-terms parallelization, if we want more
performance.  That's not implemented yet.

The copyright change came from dannyb.

Change-Id: Iedc4ba2d94cd8fdd92cf86d1eb24cc4b273b41f6
4 files changed
tree: 92606fc2b5324ce38c997b56c3f93f8d0a9cdb3e
  1. src/
  2. tests/
  3. Android.mk
  4. COPYRIGHT.txt
  5. impl.html