Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

rotl8

Optimized left bit rotate of b by a over u8.

Arguments

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

Returns

  • u8 - result of left rotate

Fully qualified path: alexandria_math::opt_math::rotl8

pub fn rotl8(a: u8, b: u8) -> u8