Y
Hacker News
new
|
ask
|
show
|
jobs
by
thaumasiotes
523 days ago
That's how you check modulus for powers of 2. 2 is a power of 2. This barely even qualifies as an "optimization".