#define ROTATE_INTEGER_R(n) n=(((n) << 31) | ((n) >> 1)) int RotateIntValue (int n, int bits) { for (int i=0; i < bits; i++) { ROTATE_INTEGER_R (n); } } int a = 74843359; RotateIntValue (a, 7);