8301202: Port fdlibm log to Java

Reviewed-by: bpb
This commit is contained in:
Joe Darcy 2023-02-11 02:15:46 +00:00
parent 98e98e9049
commit 919a6da2a7
5 changed files with 498 additions and 2 deletions

View file

@ -259,7 +259,9 @@ public final class StrictMath {
* @return the value ln {@code a}, the natural logarithm of
* {@code a}.
*/
public static native double log(double a);
public static double log(double a) {
return FdLibm.Log.compute(a);
}
/**
* Returns the base 10 logarithm of a {@code double} value.