Home
last modified time | relevance | path

Searched refs:square (Results 1 – 2 of 2) sorted by relevance

/libcore/support/src/test/java/tests/util/
DSummaryStatistics.java37 private double square(double value) { in square() method in SummaryStatistics
47 shiftedSquaresSum += square(value - firstValue); in add()
59 return (shiftedSquaresSum / numValues) - square(shiftedMean); in var()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java988 v2 = v.square().add(d.multiply(u.square())).mod(n);
1524 return square(); in multiply()
1987 @NonNull private BigInteger square() { in square() method
1988 return square(false); in square()
1998 @NonNull private BigInteger square(boolean isRecursion) { in square() method
2139 BigInteger xhs = xh.square(); // xhs = xh^2 in squareKaratsuba()
2140 BigInteger xls = xl.square(); // xls = xl^2 in squareKaratsuba()
2143 …return xhs.shiftLeft(half*32).add(xl.add(xh).square().subtract(xhs.add(xls))).shiftLeft(half*32).a… in squareKaratsuba()
2170 v0 = a0.square(true); in squareToomCook3()
2172 vm1 = da1.subtract(a1).square(true); in squareToomCook3()
[all …]