stl.hex2bit (arity 2)ΒΆ
bit[:4] = hex
hex is a hex, bit is a bit.vec 4.
SignatureΒΆ
def hex2bit bit, hex { ... }
Defined in casting.fj β lines 38β41 (view on GitHub).
ComplexityΒΆ
Time:
5@-4Space:
5@+8
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def hex2bit bit, hex {
bit.zero 4, bit
hex.exact_xor bit+3*dw+dbit, bit+2*dw+dbit, bit+dw+dbit, bit+dbit, hex
}
Depends onΒΆ
β Previous: stl.bit2hex/3
Next: stl.hex2bit/3 β