pub fn reverse_bits(val: u64) -> u64
Reverse the bits in the given 64-bit value, turning the MSB into the LSB and vice versa