Bit operations (C++)
Recently I had a question on the interview - I was asked to compare bitwise operations in performance terms. Like, give a brief description of the performance of different bit operations. I guess this question could is pretty general and pretty machine-specific, but I also think there should be some general rules about this, which you have to mention (and I didn't :). So - what would you answer? I probably should also say, that it may be a good idea to compare their performance in C (or C++, whatever) , because I assume that these languages give more space for the compiler to perform bit