Warrants further reading.

Thanks.

Note: His code does not even work on his examples, so I dunno what's up with it.

Might be machine architecture dependant.
Hate bit twiddling on different boxen.