Skip to main content

rotate_right

Function rotate_right 

Source
pub open spec fn rotate_right(x: i64, n: u32) -> i64
Expand description
{ if n % 64u32 == 0 { x } else { u64_specs::rotate_right(x as u64, n) as i64 } }

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