I thought the recent post about branchless optimization in Rust was pretty cool. This morning I came across a HN post about someone's hand rolled word counter in C. I realized it was a great candidate to remove branches from the inner loop.

Source: [Hacker News](https://sites.google.com/view/david-kooi/blog/branchless_in_c)

Sponsored