rightLogShift(): Unsigned Bit Shift Right
rightLogShift() shifts bits right and fills positions on the left with zeros. It is useful when an integer should be treated as an unsigned bit pattern, such as packed flags or binary protocol fields.
Logical versus arithmetic shifts
Unlike rightArithShift(), a logical shift does not preserve a negative sign. Use leftShift() for leftward movement and bitOr() to assemble flags.
Validate shift count and integer width. A decimal-looking negative number is still a bit pattern under logical shifts, so document whether your data is signed or unsigned.