mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8304028: Port fdlibm IEEEremainder to Java
Reviewed-by: bpb
This commit is contained in:
parent
a565be4dc5
commit
abfb900829
7 changed files with 716 additions and 129 deletions
|
@ -369,7 +369,9 @@ public final class StrictMath {
|
|||
* @return the remainder when {@code f1} is divided by
|
||||
* {@code f2}.
|
||||
*/
|
||||
public static native double IEEEremainder(double f1, double f2);
|
||||
public static double IEEEremainder(double f1, double f2) {
|
||||
return FdLibm.IEEEremainder.compute(f1, f2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the smallest (closest to negative infinity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue