diff options
Diffstat (limited to '2/8.c')
| -rw-r--r-- | 2/8.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -1,17 +1,6 @@ #include <stdio.h> /* rotates x to the right by n positions */ -unsigned rightrot(unsigned x, int n); - -int main(int argc, char *argv[]) { - unsigned x; - - x = rightrot(0x7, 3); - printf("rotated: %x\n", x); - - return 0; -} - unsigned rightrot(unsigned x, int n) { return (x >> n) | (x << (32 - n)); }
\ No newline at end of file |
