Lines Matching refs:sum_
24 if (sum_ > 0) { in Add()
25 RTC_DCHECK_LE(sample, std::numeric_limits<int64_t>::max() - sum_); in Add()
27 RTC_DCHECK_GE(sample, std::numeric_limits<int64_t>::min() - sum_); in Add()
29 sum_ += sample; in Add()
37 if (sum_ > 0) { in Add()
38 RTC_DCHECK_LE(other.sum_, std::numeric_limits<int64_t>::max() - sum_); in Add()
40 RTC_DCHECK_GE(other.sum_, std::numeric_limits<int64_t>::min() - sum_); in Add()
42 sum_ += other.sum_; in Add()
54 return rtc::dchecked_cast<int>(sum_ / num_samples_); in Avg()
65 return sum_; in Sum()
85 int64_t mean = sum_ / num_samples_; in Variance()