RFR: JDK-8302026: Port fdlibm inverse trig functions (asin, acos, atan) to Java

Raffaello Giulietti rgiulietti at openjdk.org
Tue Feb 14 13:16:43 UTC 2023


On Mon, 13 Feb 2023 22:03:14 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Proceeding down the line of FDLIBM functions to be ported, next up are asin, acos, and atan.
> 
> Diffs of the various versions will follow in a separate message.
> 
> There were no unusual coding idioms encountered in porting these methods.

Otherwise LGTM

test/jdk/java/lang/StrictMath/InverseTrigTests.java line 96:

> 94: 
> 95:                0.975,
> 96:               -0.975,

I think other decision points for asin are 2**-27 and -2**-27 (0x1p-27 and -0x1p-27)

-------------

PR: https://git.openjdk.org/jdk/pull/12545


More information about the core-libs-dev mailing list