Binary Shifting?

Does anybody have any good resources on best practices and how to optimize binary shifting?

Or how to read it, in c++.

I’m trying to print a shifting algorithm to a binary shifted look up table.