hex.cmp (arity 5)ΒΆ

Three-way compare on hex nibbles: jumps to lt if a<b, eq if a==b, gt if a>b. a, b are hexes; lt, eq, gt are addresses.

SignatureΒΆ

def cmp a, b, lt, eq, gt @ ret, _eq, _gt, jumper_to_return_table, __lt, __eq, __gt < .cmp.dst, .tables.ret { ... }

Defined in hex/cond_jumps.fj β€” lines 81–109 (view on GitHub).

ComplexityΒΆ

  • Time: 3@+8

  • Space: 3@+30

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

Requires initΒΆ

The following must be initialised before this macro is invoked:

  • hex.cmp.init (or hex.init)

SourceΒΆ

Depends onΒΆ

Used byΒΆ

Example usesΒΆ


← Previous: hex.sign Next: hex.cmp/6 β†’