Use a more canonical way of computing a mask with N trailing 1s. NFC.