std.crypto.math.rotate_left_u64
Show source codeHide source code
fn pub rotate_left_u64(value: Int, amount: Int) -> Int {
(value << amount) | (value >>> (64 - amount))
}
fn pub 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.