Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

rotl32

Optimized left bit rotate of b by a over u32.

Arguments

  • a - Number of rotations (0 < a <= 31).
  • b - Value to be rotated.

Returns

  • u32 - result of left rotate

Fully qualified path: alexandria_math::opt_math::rotl32

pub fn rotl32(a: u8, b: u32) -> u32