Thursday 21 October 2010

Bit Hacks

I must admit that I'm fairly new to computer science. I followed a link on proggit to a series of bithacks hosted by Stanford.
http://graphics.stanford.edu/~seander/bithacks.html

I found some of the basic ones a good challenge to think about without looking at the answer right away. Otherwise I'm astonished at the power available from these techniques although I'm aware most compilers are very well optimised accomodating for these methods. Even though branching isn't really a concern for me, it's fascinating to read.

No comments:

Post a Comment