std.crypto.math.rotate_right_u32
Show source codeHide source code
fn pub rotate_right_u32(value: Int, amount: Int) -> Int {
to_u32((value >> amount) | (value << (32 - amount)))
}
fn pub static rotate_right_u32(value: Int, amount: Int) -> Int
Rotates a 32-bits unsigned integer to the right.
Panics
This method panics if amount
is greater than 32 or less than zero.