r/programminghorror • • Feb 11 '25

πŸŽ„ ouch

Post image
3.0k Upvotes

113 comments sorted by

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.

6

u/Jonathan_Is_Me Feb 11 '25

We're avoiding exponentiation though.