pub fn add_value(&mut self, value: u64) {
        let msb: usize = 64usize - value.leading_zeros() as usize;
        let index = msb.saturating_sub(HDHISTOGRAM_BITS);
        let low_bits = value >> (index.saturating_sub(1)) & ((1 << HDHISTOGRAM_BITS) - 1);
        self.counts[index][low_bits as usize] += 1;
    }
/// Add a sample to the histogram.
///
/// This is guaranteed to be constant time and never re-allocates.
Add a sample to the histogram.
This is guaranteed to be constant time and never re-allocates.
Add a sample to the histogram . This is guaranteed to be constant time and never re - allocates .
pub fn add_value(&mut self, value: u64) {
        let msb: usize = 64usize - value.leading_zeros() as usize;
        let index = msb.saturating_sub(HDHISTOGRAM_BITS);
        let low_bits = value >> (index.saturating_sub(1)) & ((1 << HDHISTOGRAM_BITS) - 1);
        self.counts[index][low_bits as usize] += 1;
    }
pub fn add_value ( & mut self , value : u64 ) { let msb : usize = 64usize - value . leading_zeros ( ) as usize ; let index = msb . saturating_sub ( HDHISTOGRAM_BITS ) ; let low_bits = value >> ( index . saturating_sub ( 1 ) ) & ( ( 1 << HDHISTOGRAM_BITS ) - 1 ) ; self . counts [ index ] [ low_bits as usize ] += 1 ; }
Add a sample to the histogram.
Add a sample to the histogram .
&mut self
value
u64
&mut self
value
u64