8302028: Port fdlibm atan2 to Java

Reviewed-by: bpb
This commit is contained in:
Joe Darcy 2023-02-22 22:49:59 +00:00
parent 07e976ac26
commit fcaf871408
6 changed files with 615 additions and 28 deletions

View file

@ -547,7 +547,9 @@ public final class StrictMath {
* in polar coordinates that corresponds to the point
* (<i>x</i>,&nbsp;<i>y</i>) in Cartesian coordinates.
*/
public static native double atan2(double y, double x);
public static double atan2(double y, double x) {
return FdLibm.Atan2.compute(y, x);
}
/**
* Returns the value of the first argument raised to the power of the