Fixed representations, explicit assumptions
Logical and arithmetic right shifts are different operations. The selected bit width controls sign interpretation and which shifted-out bits are discarded.
Browser-local integer math
Compare left shift, logical right shift, arithmetic right shift and bit rotation at explicit 8/16/32/64-bit widths. Inputs are processed locally with BigInt where integer precision matters.