bit.inc.inc1_with_carry0_jumpΒΆ
Unsafe for dst==carry (but there is no reason in calling it that way)
If carry was 0, jump to carry0_jump.
{carry:dst}++
carry,dst are bits.
SignatureΒΆ
def inc1_with_carry0_jump dst, carry, carry0_jump @ end { ... }
Defined in bit/math.fj β lines 21β27 (view on GitHub).
ComplexityΒΆ
Time:
2@+6Space:
2@+6
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def inc1_with_carry0_jump dst, carry, carry0_jump @ end {
..if0 carry, carry0_jump
..not dst
..if0 dst, end
..not carry
end:
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
bit.inc1inbit/math.fj