请解释如下内容,并举一些很好的例子。
A left arithmetic shift by n is equivalent to multiplying by 2n (provided the value does not overflow).
而且:
A right arithmetic shift by n of a two s complement value is equivalent to dividing by 2n and rounding toward negative infinity. If the binary number is treated as ones complement, then the same right-shift operation results in division by 2n and rounding toward zero.