There is absolutely no reason the bitwise or operator is slower than the addition operator unless the processor is specifically built for things like addition, which
afaik no commercial ones are...
and
afaik the jvm optimization does not go that deep into code to check if certain bit ranges are effected that it might be able to just use bitwise or.
it's not at all a syntax difference, it's a literal operation difference, the processor will be using a completely different circuit
and finally, the os does not effect those instructions, lol