Comunque la formula è:
codice:
5 * 7 = 5 * 2^(7 & 1 << 0) + 5 * 2^(7 & 1 << 1) + 5 * 2^(7 & 1 << 2)
Generalizzata:
codice:
0 <= i < round(log(b, 2))
a * b = Sommatoria(a * 2^(b & 1 << i))