Implements operators % & | ^ << and >> to match the arithmetic ones.