Function reverse_bits
Source pub fn reverse_bits(x: usize, bits: u32) -> usize
Expand description
Reverses the low bits bits of an unsigned integer.
§Arguments
x - The value whose bits to reverse
bits - The number of low-order bits to reverse
§Returns
The value with its low bits bits reversed