bit/shifts.fjΒΆ βββ- Logical Shifts View source on GitHub MacrosΒΆ bitΒΆ bit.shr/2 β x[:n] >>= 1 bit.shr/3 β times is a constant. bit.shra β times is a constant. bit.shl/2 β x[:n] <<= 1 bit.shl/3 β times is a constant. bit.ror β rotate x[:n] right by 1-bit bit.rol β rotate x[:n] left by 1-bit