bit.shraΒΆ

x[:n] >>= times (arithmetic shift right)
times is a constant.
@Assumes: times <= n

@Assumes: times <= n

SignatureΒΆ

def shra n, times, x { ... }

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

ComplexityΒΆ

  • Time: n(2@-1)

  • Space: n(2@-1)

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

SourceΒΆ


← Previous: bit.shr/3 Next: bit.shl/2 β†’