mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8301392: Port fdlibm log1p to Java
Reviewed-by: bpb
This commit is contained in:
parent
f696785fd3
commit
ee0f5b5ed0
4 changed files with 409 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue