rotr8 function

int rotr8(
  1. int x,
  2. int n
)

Implementation

int rotr8(int x, int n) {
  assert(n >= 0);
  assert((x >= 0) && (x <= mask8));
  n &= mask3;
  return ((x >> n) & mask8) | ((x << (8 - n)) & mask8);
}