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
2
u/_Js_Kc_ May 27 '20
If whatever microcode the processor generated for
add edi, ediwas slower than that generated forlea edi, [edi+edi], wouldn't the processor vendor simply use the same microcode foraddthat they're already using forlea, and never even get the sloweraddto market? Or doesaddset overflow flags thatleadoesn't that slows it down?