hex.mul.clear_carry¶
Reset the per-multiplication carry-tracking variable to zero. Called by hex.add_mul at the start and end of each addition step (and transitively by hex.mul through hex.add_mul).
Signature¶
def clear_carry @ return < .ret, .add_carry_dst { ... }
Defined in hex/mul.fj — lines 91–98 (view on GitHub).
Complexity¶
Time:
3@+1Space:
3@+1
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def clear_carry @ return < .ret, .add_carry_dst {
..add.clear_carry
wflip .ret+w, return
.add_carry_dst+dbit+9; .add_carry_dst
pad 16
return:
wflip .ret+w, return
}
Depends on¶
Used by¶
Example uses¶
hex.add_mulinhex/mul.fj
← Previous: hex.mul
Next: hex.mul.init →