hex.vec (arity 2)ยถ
Hexadecimal vector with initial value.
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, value { ... }
Defined in hex/memory.fj โ lines 20โ22 (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, value {
rep(n, i) .hex (value>>(4*i))&0xf
}
Used byยถ
Example usesยถ
hex.pointers.ptr_initinhex/pointers/basic_pointers.fjhex.pointers.stack_initinhex/pointers/basic_pointers.fj