pub open spec fn rotate_right(x: i16, n: u32) -> i16
{ if n % 16u32 == 0 { x } else { u16_specs::rotate_right(x as u16, n) as i16 } }
Rotates the two’s-complement bits of x, as the unsigned rotate_right does.
x
rotate_right