mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8302040: Port fdlibm sqrt to Java
Reviewed-by: bpb, thartmann, aturbanov
This commit is contained in:
parent
6423065b7d
commit
61e8867591
8 changed files with 875 additions and 6 deletions
|
@ -310,7 +310,9 @@ public final class StrictMath {
|
|||
* @return the positive square root of {@code a}.
|
||||
*/
|
||||
@IntrinsicCandidate
|
||||
public static native double sqrt(double a);
|
||||
public static double sqrt(double a) {
|
||||
return FdLibm.Sqrt.compute(a);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the cube root of a {@code double} value. For
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue