hex.set (arity 3)ΒΆ
hex[:n] = val (constant)
SignatureΒΆ
def set n, hex, val { ... }
Defined in hex/memory.fj β lines 94β96 (view on GitHub).
ComplexityΒΆ
Time:
n(@+4)Space:
n(@+16)
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def set n, hex, val {
rep(n, i) .set hex+i*dw, (val>>(4*i))&0xf
}
Used byΒΆ
Example usesΒΆ
hex.divinhex/div.fj
β Previous: hex.set/2
Next: hex.swap/2 β