Shift Examples
A Right Shift
0 0 0 0 0 1 0 0 original
0 0 0 0 0 0 1 0 shift
What was the original value ? 4
What is the new value ? 2
A very fast way to divide by 2
If we did 2 right shifts, we’d be dividing by 4, 3 left shifts by 8, etc.
Previous slide
Next slide
Back to first slide
View graphic version