bit.vec (arity 1)¶
Binary vector.
You can’t place it as you would any other standard library macro, because “running” this line is undefined behavior. All bit, bit.vec, hex, and hex.vec declarations should be placed in a region of memory that won’t ever be executed — typically below stl.loop.
Signature¶
def vec n { ... }
Defined in bit/memory.fj — lines 23–25 (view on GitHub).
Complexity¶
Time:
0 (data declaration)Space:
n
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def vec n {
rep(n, i) .bit
}
Used by¶
Example uses¶
bit.print_hex_uint.print_digitinbit/output.fjbit.mul10inbit/mul.fjbit.mul_loopinbit/mul.fj
← Previous: bit.vec/2
Next: bit.zero/1 →