Skip to main content

rotate_right

Function rotate_right 

Source
pub open spec fn rotate_right(x: i32, n: u32) -> i32
Expand description
{ if n % 32u32 == 0 { x } else { u32_specs::rotate_right(x as u32, n) as i32 } }

Rotates the two’s-complement bits of x, as the unsigned rotate_right does.