Binary Shift Left Operation

A left shift 1 place is the same as multiplying by 2

A left shift 2 place is the same as multiplying by 4

A left shift 3 place is the same as multiplying by 8

In general shifting N places left is the same as multiplying by 2 to the power N (written as 2N)

NOTE: A left shift 0 places is the same as multiplying by 20 and since 20 is equivalent to 1 it is the same as multiplying by 1

EXAMPLES

shift left 1 place

input 0 0 1 0 0 1 0 1
result 0 1 0 0 1 0 1 0

shift left 2 places

input 0 0 1 0 0 1 0 1
result 1 0 0 1 0 1 0 0

shift left 3 places

input 0 0 1 0 0 1 0 1
result 0 0 1 0 1 0 0 0