Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/DoubleStreamSums/
DCompensatedSums.java116 static double[] sumWithCompensation(double[] intermediateSum, double value) { in sumWithCompensation() argument
117 double tmp = value - intermediateSum[1]; in sumWithCompensation()
118 double sum = intermediateSum[0]; in sumWithCompensation()
120 intermediateSum[1] = (velvel - sum) - tmp; in sumWithCompensation()
121 intermediateSum[0] = velvel; in sumWithCompensation()
122 return intermediateSum; in sumWithCompensation()
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java755 static double[] sumWithCompensation(double[] intermediateSum, double value) {
756 double tmp = value - intermediateSum[1];
757 double sum = intermediateSum[0];
759 intermediateSum[1] = (velvel - sum) - tmp;
760 intermediateSum[0] = velvel;
761 return intermediateSum;