Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

rotl128

Optimized left bit rotate of b by a over u128.

Arguments

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

Returns

  • u128 - result of left rotate

Fully qualified path: alexandria_math::opt_math::rotl128

pub fn rotl128(a: u8, b: u128) -> u128