previous | start | next

Chapter 3: Shift Instructions

Practice Problem 3.8

int shift_left2_rightn(int x, int n)
{
  x <<= 2;
  x >>= n;
  return x;
}


previous | start | next