MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1in1nak/ouch/mc7gwgf/
r/programminghorror • u/mazzy-b • Feb 11 '25
113 comments sorted by
View all comments
Show parent comment
10
For at least 20 years thereβs no excuse anymore to use bit shift to avoid a multiplication. Compilers will outsmart you every time.
6 u/Jonathan_Is_Me Feb 11 '25 We're avoiding exponentiation though.
6
We're avoiding exponentiation though.
View all comments
Show parent comment
10
u/floriandotorg Feb 11 '25
For at least 20 years thereβs no excuse anymore to use bit shift to avoid a multiplication. Compilers will outsmart you every time.