8301392: Port fdlibm log1p to Java

Reviewed-by: bpb
This commit is contained in:
Joe Darcy 2023-02-02 20:36:34 +00:00
parent f696785fd3
commit ee0f5b5ed0
4 changed files with 409 additions and 15 deletions

View file

@ -2124,7 +2124,9 @@ public final class StrictMath {
* log of {@code x} + 1
* @since 1.5
*/
public static native double log1p(double x);
public static double log1p(double x) {
return FdLibm.Log1p.compute(x);
}
/**
* Returns the first floating-point argument with the sign of the