bit.if (arity 3)ΒΆ
if x == 0 jump to l0, else jump to l1
x is a bit, l0,l1 are addresses.
SignatureΒΆ
def if x, l0, l1 @ label_ptr, base_jump_label { ... }
Defined in bit/cond_jumps.fj β lines 8β16 (view on GitHub).
ComplexityΒΆ
Time:
@+2Space:
@+2
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def if x, l0, l1 @ label_ptr, base_jump_label {
.xor label_ptr, x
label_ptr:
;base_jump_label
pad 2
base_jump_label:
;l0
label_ptr + dbit;l1
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
Next: bit.if/4 β