79503191

Date: 2025-03-12 09:54:58
Score: 1.5
Natty:
Report link

Rather than mixing 16-bit and 8-bit multiplies, think of M and N as 32-bit values (with leading zeroes). Then you have MH:ML × NH:NL.

MH × NL, MH × NH + CARRY. Shift left 16 bits, add ML × NL + CARRY, ML × NH + CARRY.

When multiplying AND adding, use the 16-bit "Multiply Accumulate" instruction EMACS.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Alan Campbell