bit.zero (arity 2)¶
x[:n] = 0
Signature¶
def zero n, x { ... }
Defined in bit/memory.fj — lines 41–43 (view on GitHub).
Complexity¶
Time:
n(@-1)Space:
n(@-1)
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def zero n, x {
rep(n, i) .zero x+i*dw
}
Used by¶
Example uses¶
stl.hex2bitincasting.fjbit.shrinbit/shifts.fjbit.shlinbit/shifts.fj
← Previous: bit.zero/1
Next: bit.one/1 →