fn reduce(value: T) -> T {
        let lhs: T = (value & T::BIT_MASK).into();
        let rhs: T = (value >> T::SHIFT_AMOUNT).into();
        let result: T = (lhs + rhs).into();
        if result == T::BIT_MASK {
            T::default()
        } else {
            result
        }
    }
/// Reduces the accumulator value
///
/// This function needs to reduce the accumulator value in a manner
/// that rounds the value according to one's compliment math.
Reduces the accumulator value
This function needs to reduce the accumulator value in a manner
that rounds the value according to one's compliment math.
Reduces the accumulator value This function needs to reduce the accumulator value in a manner that rounds the value according to one ' s compliment math .
fn reduce(value: T) -> T {
        let lhs: T = (value & T::BIT_MASK).into();
        let rhs: T = (value >> T::SHIFT_AMOUNT).into();
        let result: T = (lhs + rhs).into();
        if result == T::BIT_MASK {
            T::default()
        } else {
            result
        }
    }
fn reduce ( value : T ) -> T { let lhs : T = ( value & T :: BIT_MASK ) . into ( ) ; let rhs : T = ( value >> T :: SHIFT_AMOUNT ) . into ( ) ; let result : T = ( lhs + rhs ) . into ( ) ; if result == T :: BIT_MASK { T :: default ( ) } else { result } }
Reduces the accumulator value
This function needs to reduce the accumulator value in a manner
that rounds the value according to one's compliment math.
Reduces the accumulator value This function needs to reduce the accumulator value in a manner that rounds the value according to one ' s compliment math .
value
T
value
T