Hacker News new | ask | show | jobs
by davvid 4042 days ago
That would work, but that means branching to handle the left/right difference. The author mentioned that he wants to avoid branching to maximize performance.

Avoiding branching is still relevant on modern machines when optimizing hotspots, and even moreso as cpu instruction pipelines get longer.