If you have the money (and the time), grab a copy of Hacker's Delight (by Henry S. Warren). It is probably the best bit shifting guide around. It will take you through simple shifts (and other manipulation techniques) all the way through Gray codes and more...