8304028: Port fdlibm IEEEremainder to Java

Reviewed-by: bpb
This commit is contained in:
Joe Darcy 2023-03-31 19:48:03 +00:00
parent a565be4dc5
commit abfb900829
7 changed files with 716 additions and 129 deletions

View file

@ -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)