Right shifting x by k, fills the left end with k zeroes. Assuming a w−bit vector, x=[xw−1,xw−2,…,x0], x≫k will give: [0,…,0,xw−1,xw−2,…xk] Almost all machine instructions use logical right shifts for unsigned data Example x=[1100] x>>2=[0011] The italicised 0s indicate the values that fill the left end Sources Computer Systems - A Programmer’s Perspective Related Notes