src/share/vm/utilities/numberSeq.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hs-gc-remove-define_num_seq Cdiff src/share/vm/utilities/numberSeq.cpp

src/share/vm/utilities/numberSeq.cpp

Print this page

        

*** 113,140 **** return false; } return true; } - NumberSeq::NumberSeq(NumberSeq *total, int n, NumberSeq **parts) { - guarantee(check_nums(total, n, parts), "all seq lengths should match"); - double sum = total->sum(); - for (int i = 0; i < n; ++i) { - if (parts[i] != NULL) - sum -= parts[i]->sum(); - } - - _num = total->num(); - _sum = sum; - - // we do not calculate these... - _sum_of_squares = -1.0; - _maximum = -1.0; - _davg = -1.0; - _dvariance = -1.0; - } - void NumberSeq::add(double val) { AbsSeq::add(val); _last = val; if (_num == 0) { --- 113,122 ----
src/share/vm/utilities/numberSeq.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File