bit.shr (arity 2)¶
x[:n] >>= 1
Signature¶
def shr n, x { ... }
Defined in bit/shifts.fj — lines 7–9 (view on GitHub).
Complexity¶
Time:
n(2@-1)Space:
n(2@-1)
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def shr n, x {
.shr n, 1, x
}
Depends on¶
Used by¶
Example uses¶
bit.mul_loopinbit/mul.fjbit.div_loopinbit/div.fj
Next: bit.shr/3 →