Histogram.cc (11031:3815437cb231) | Histogram.cc (11049:dfb0aa3f0649) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 70 unchanged lines hidden (view full) --- 79 for (uint32_t i = t_bins/2; i < t_bins; i++) { 80 m_data[i] = 0; 81 } 82 83 m_binsize *= 2; 84} 85 86void | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 70 unchanged lines hidden (view full) --- 79 for (uint32_t i = t_bins/2; i < t_bins; i++) { 80 m_data[i] = 0; 81 } 82 83 m_binsize *= 2; 84} 85 86void |
87Histogram::add(int64_t value) | 87Histogram::add(int64 value) |
88{ 89 assert(value >= 0); 90 m_max = max(m_max, value); 91 m_count++; 92 93 m_sumSamples += value; 94 m_sumSquaredSamples += (value*value); 95 --- 141 unchanged lines hidden --- | 88{ 89 assert(value >= 0); 90 m_max = max(m_max, value); 91 m_count++; 92 93 m_sumSamples += value; 94 m_sumSquaredSamples += (value*value); 95 --- 141 unchanged lines hidden --- |