[Solved] Simple logic operation >> &

That code isolates the two bits indicated by the arrows below, and moves them to the two least significant bit positions. vv 11111111111111111111111111111111 original value vv 00000000000000000011111111111111 after >>18 (shift right 18 positions) vv 00000000000000000000000000000011 after & 3 (mask out all but the 0th and 1st bits) This assumes an unsigned value, and no special … Read more