mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8301202: Port fdlibm log to Java
Reviewed-by: bpb
This commit is contained in:
parent
98e98e9049
commit
919a6da2a7
5 changed files with 498 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue