< prev index next >

src/java.base/share/classes/java/lang/Math.java

Print this page

        

*** 1077,1086 **** --- 1077,1087 ---- * Returns the exact mathematical product of the arguments. * * @param x the first value * @param y the second value * @return the result + * @since 9 */ public static long multiplyFull(int x, int y) { return (long)x * (long)y; }
*** 1089,1098 **** --- 1090,1100 ---- * product of two 64-bit factors. * * @param x the first value * @param y the second value * @return the result + * @since 9 */ public static long multiplyHigh(long x, long y) { if (x < 0 || y < 0) { // Use technique from section 8-2 of Henry S. Warren, Jr., // Hacker's Delight (2nd ed.) (Addison Wesley, 2013), 173-174.
< prev index next >