hg: jdk9/dev/jdk: 4891331: BigInteger a.multiply(a) should use squaring code

brian.burkhalter at oracle.com brian.burkhalter at oracle.com
Fri Dec 13 16:49:52 PST 2013


Changeset: f92e3055433c
Author:    bpb
Date:      2013-12-13 16:15 -0800
URL:       http://hg.openjdk.java.net/jdk9/dev/jdk/rev/f92e3055433c

4891331: BigInteger a.multiply(a) should use squaring code
Summary: Change multiply(BigInteger a) to return square() if a == this and the number of ints in the magnitude is over a threshold.
Reviewed-by: darcy, shade

! src/share/classes/java/math/BigInteger.java



More information about the jdk9-dev-changes mailing list