hex.shl_bit¶
dst[:n] <<= 1
Signature¶
def shl_bit n, dst { ... }
Defined in hex/shifts.fj — lines 8–11 (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 shl_bit n, dst {
.shifts.shl_bit_once dst+(n-1)*dw, 0
rep(n-1, i) .shifts.shl_bit_once dst+(n-2-i)*dw, dst+(n-1-i)*dw
}
Depends on¶
Used by¶
Example uses¶
hex.mul10inhex/mul.fj
Next: hex.shr_bit →