Skip to main content

rev_n

Function rev_n 

Source
pub fn rev_n(x: i64, n: u32) -> i64
Expand description

Reverse the low n bits of x (bits ≥ n are ignored). The board reflection.