Generally :
An arithmetic shift to the right is
equivalent to dividing by 2.
Generally, a shift to the right of
n places
is equivalent to
dividing
by 2n
Eg. Shift to the right 3 places
is equivalent to dividing by 23 = 8
An arithmetic shift to the left is
equivalent to multiplying by 2.
Generally, a shift to the left of
n places
is equivalent to
multiplying
by 2n
Eg. Shift to the left 3 places is
equivalent to multiplying by 23 = 8
|