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