hex.cmp (arity 5)¶
compares a to b.
if a < b: goto lt;
if a == b: goto eq;
if a > b: goto gt;
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@+8Space:
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)