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