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