Comment

Comment by JonChesterfield

If it's a power of two, you don't need the branch at all. Let the unsigned index wrap.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton