Comment Comment by codezero Can you do this with an xor and popcount? I suppose that's what the author is implying when they say the compiler takes care of this. parent codezero 5 years ago