bit.cmp (arity 5)ΒΆ
Three-way compare on bits: jumps to lt if a<b, eq if a==b, gt if a>b. a, b are bits; lt, eq, gt are addresses.
SignatureΒΆ
def cmp a, b, lt, eq, gt @ a_is1_label { ... }
Defined in bit/cond_jumps.fj β lines 66β71 (view on GitHub).
ComplexityΒΆ
Time:
2@+4Space:
3@+6
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def cmp a, b, lt, eq, gt @ a_is1_label {
.if1 a, a_is1_label
.if b, eq, lt
a_is1_label:
.if b, gt, eq
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
bit.cmpinbit/cond_jumps.fjbit._.cmp_next_eqinbit/cond_jumps.fj