r/programming • u/DataBaeBee • Sep 14 '26
How GCC Eliminates Unnecessary Integer Division
https://leetarxiv.substack.com/p/how-gcc-eliminates-unnecessary-integer
250
Upvotes
r/programming • u/DataBaeBee • Sep 14 '26
View all comments
Show parent comment
11
u/QuestionableEthics42 Sep 14 '26
It's not 80 not even close. And some architectures have apparently got it down to near imul speeds. imul is also 1-3, not always 1.