aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/rotate/rotate.c
blob: 96f20c49a5b7f96a5a72c7ec4c9fff187e4d459c (plain)
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>

unsigned rotate(unsigned x) {
  return (x << 4) | (x >> (32-4));
}

int main() {
  unsigned x = 0x12345678U;
  printf("%X %X\n", x, rotate(x));
}