bit.one (arity 2)ΒΆ
x[:n] = (1<<n) - 1 // all 1's
SignatureΒΆ
def one n, x { ... }
Defined in bit/memory.fj β lines 55β57 (view on GitHub).
ComplexityΒΆ
Time:
n@Space:
n@
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def one n, x {
rep(n, i) .one x+i*dw
}
β Previous: bit.one/1
Next: bit.unsafe_mov β