Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

rotl256

Optimized left bit rotate of b by a over u256.

Arguments

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

Returns

  • u256 - result of left rotate

Fully qualified path: alexandria_math::opt_math::rotl256

pub fn rotl256(a: u8, b: u256) -> u256