Hacker News new | ask | show | jobs
by anon263626 3374 days 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.

1 comments

Aah finally a good clue about reading material. Thanks a ton.