There must be add-vantages to this design.
Comment on wat
Artyom@lemm.ee 2 years ago
Just wait until they learn that computers subtract by adding, and multiply by adding, and divide by adding, and do exponents by adding, and do logarithms by adding.
Kacarott@feddit.de 2 years ago
0ops@lemm.ee 2 years ago
And don’t get me started on demorgan’s law!
FantasmaNaCasca@lemmy.world 2 years ago
Wait, is it All…just adding? ಠ_ಠ
Artyom@lemm.ee 2 years ago
Always has been
ZILtoid1991@lemmy.world 2 years ago
it multiplies by using a complex set of gate arrays that do some adding, otherwise hardware multipliers are like multiplier tables built up by logic gates. Early CPUs did multiplication by adding (essentially multiplications are just recursively adding the same numbers to themselves), and if you were lucky it was optimized to use bit-shifts.
Division is a lot more complicated though. I did some optimization by multiplying with reciprocals instead, but speed gain was negligible due to memory bandwith limitations.