pub fn rev_n(x: i64, n: u32) -> i64
Reverse the low n bits of x (bits ≥ n are ignored). The board reflection.
n
x