hex/mul.fj

View source on GitHub

Macros

hex

  • hex.add_mul/2res += x * dst + carry_dst — one shift-and-add (multiply-accumulate) step used by hex.mul. Reads/writes the global multiplication carry.

  • hex.add_mul/4res[n] += a[n] * b[1]

  • hex.mul10x[n] *= 10

  • hex.mulfor n==b/2: n^2(5.5@+20)

hex.mul

  • 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 …

  • hex.mul.initdst[1] is zeroed after finishing this multiplication.