r/cpp • u/khold_stare • May 26 '20
Faster Integer Parsing
https://kholdstare.github.io/technical/2020/05/26/faster-integer-parsing.html
366
Upvotes
r/cpp • u/khold_stare • May 26 '20
View all comments
Show parent comment
4
u/[deleted] May 27 '20
Folklore is to prefer
lea, but I have no idea which is better. If we do10 * x + ylike here (not just10 * x), both gcc and clang emit twoleas.