bit.add1ΒΆ

Unsafe for dst==carry (but there is no reason in calling it that way)
{carry:dst} += src
dst,src,carry are bits.

SignatureΒΆ

def add1 dst, src, carry @ _src { ... }

Defined in bit/math.fj β€” lines 67–75 (view on GitHub).

ComplexityΒΆ

  • Time: 8@+14

  • Space: 8@+14

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

SourceΒΆ

Depends onΒΆ


← Previous: bit.neg Next: bit.add β†’