Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
FromTheSteppe
· 1y ago · 0 comments
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).
Comments
[–]
funny_falcon
1y ago
Compilers still prefer LEA to multiply on 3,5 and 9, which performs shift+add I believe.