5 ms·
There's a bunch in Hacker's Delight. One that comes to mind is XOR-swap. It's cute, but it's likely slower than using a temp var. Some of the integer populati
by anon263626 10y ago
There's a bunch in Hacker's Delight.
One that comes to mind is XOR-swap. It's cute, but it's likely slower than using a temp var.
Some of the integer population count algos (1's counting) are clever.
Also, original Doom source has some neat tricks.
- kartiksura 10y agoAah finally a good clue about reading material. Thanks a ton.