Y
Hacker News
new
|
ask
|
show
|
jobs
by
dashtiarian
479 days ago
Shift add used to execute much faster than multiplication in 8088 days and people would use it when they had to multiply an int by a known scalar (shift took 4 clocks and add took 12).
1 comments
funny_falcon
478 days ago
Compilers still prefer LEA to multiply on 3,5 and 9, which performs shift+add I believe.
link