< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.serviceprovider/src/org/graalvm/compiler/serviceprovider/GraalServices.java
Print this page
*** 499,504 ****
--- 499,522 ----
if (jmx == null) {
return null;
}
return jmx.getInputArguments();
}
+
+ /**
+ * Returns the fused multiply add of the three arguments; that is, returns the exact product of
+ * the first two arguments summed with the third argument and then rounded once to the nearest
+ * {@code float}.
+ */
+ public static float fma(float a, float b, float c) {
+ return Math.fma(a, b, c);
+ }
+
+ /**
+ * Returns the fused multiply add of the three arguments; that is, returns the exact product of
+ * the first two arguments summed with the third argument and then rounded once to the nearest
+ * {@code double}.
+ */
+ public static double fma(double a, double b, double c) {
+ return Math.fma(a, b, c);
+ }
}
< prev index next >