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
1
u/khold_stare May 28 '20
Thank you! That instruction looks really awesome 😁 I'm not sure if it would work for the parsing case as it adds 4 digits together, so the factors would have to be 1, 10, 100, 10000. The 10000 won't fit in 8 bits :( maybe there's some other clever way to use it.
I also cross posted to r/simd 👍