bit.inc

x[:n]++
x is a bit[:n]

Signature

def inc n, x @ carry, end { ... }

Defined in bit/math.fj — lines 34–41 (view on GitHub).

Complexity

  • Time: 5@+12 in average

  • Space: n(2@+6)

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

Source

Depends on

Used by

Example uses


← Previous: bit.inc.inc1_with_carry0_jump Next: bit.dec