A and B must be between 0 and 65535 (2**16 - 1), giving an effective width of 16 bits. Bits shifted below the 16 low ...