cyclic right shift

Please, help to write a function that returns the number, obtained from integer x, in which, starting from p position, cyclically shifted n bits to the right.

What do you mean by
starting from p position
Is it a simple shift or a cyclic shift ?
Topic archived. No new replies allowed.