hex.shr_bit¶
dst[:n] >>= 1
Signature¶
def shr_bit n, dst { ... }
Defined in hex/shifts.fj — lines 17–20 (view on GitHub).
Complexity¶
Time:
n(@+1)Space:
n(@+28)
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def shr_bit n, dst {
.shifts.shr_bit_once dst, 0
rep(n-1, i) .shifts.shr_bit_once dst+(i+1)*dw, dst+i*dw
}
Depends on¶
Used by¶
Example uses¶
hex.divinhex/div.fj
← Previous: hex.shl_bit
Next: hex.shl_hex/2 →