If I want to set certain bits in a variable, is it faster to add or to "OR"?
For example,
int value=piece+128; vs. int value=piece|128;
I know that piece<128, so either one is safe, but the compiler doesn't know that, so it must produce different code in each situation. Is one operation better to use than the other?