mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 826439 - use floats instead of doubles for exponential histogram statistic calculations; r=vdjeric
This commit is contained in:
parent
dd3ba161c4
commit
87d872a38f
@ -746,7 +746,7 @@ void Histogram::SampleSet::AccumulateWithExponentialStats(Sample value,
|
||||
size_t index) {
|
||||
Accumulate(value, count, index);
|
||||
DCHECK_GE(value, 0);
|
||||
double value_log = log(static_cast<double>(value) + 1);
|
||||
float value_log = logf(static_cast<float>(value) + 1.0f);
|
||||
log_sum_ += count * value_log;
|
||||
log_sum_squares_ += count * value_log * value_log;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user