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@+4

  • Space: 3@+6

See the complexity glossary for what @, w, dw, dbit, n mean.

SourceΒΆ

Depends onΒΆ

Used byΒΆ

Example usesΒΆ


← Previous: bit.if0/3 Next: bit.cmp/6 β†’