bit.rolΒΆ

rotate x[:n] left by 1-bit

SignatureΒΆ

def rol n, x @ temp_bit { ... }

Defined in bit/shifts.fj β€” lines 60–67 (view on GitHub).

ComplexityΒΆ

  • Time: n(2@-1)

  • Space: n(2@-1)

See the complexity glossary for what @, w, dw, dbit, n mean.

SourceΒΆ

Depends onΒΆ


← Previous: bit.ror