In C, through use of only bitwise operators, how could I rotate x by n bits? int rotate(int x, int n)

This is what I have so far, along with the method definition:

int rotate(int x, int n) {
return (x>>n);
Confused there onward.