bit.swap (arity 2)

a, b = b, a
a,b are bits.

Signature

def swap a, b @ a0, a1, notnot, end { ... }

Defined in bit/memory.fj — lines 94–104 (view on GitHub).

Complexity

  • Time: 2@+5

  • Space: 3@+8

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

Source

Depends on


← Previous: bit.mov/3 Next: bit.swap/3