Search results

There are no results.

std.crypto.math.rotate_left_u32

Show source code
Hide source code
fn pub rotate_left_u32(value: Int, amount: Int) -> Int {
  to_u32((value << amount) | (value >>> (32 - amount)))
}
fn pub 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.