From c800a6727d58641f97db0f24a6e3ad1076a4eec7 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Wed, 1 Dec 2021 21:44:14 +0800 Subject: Clean up. --- 2/8.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to '2/8.c') diff --git a/2/8.c b/2/8.c index 2d57301..4ce829b 100644 --- a/2/8.c +++ b/2/8.c @@ -1,17 +1,6 @@ #include /* 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 -- cgit v1.2.3