summaryrefslogtreecommitdiffstats
path: root/2/9.c
diff options
context:
space:
mode:
Diffstat (limited to '2/9.c')
-rw-r--r--2/9.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/2/9.c b/2/9.c
index 06a675a..7df5637 100644
--- a/2/9.c
+++ b/2/9.c
@@ -1,10 +1,6 @@
#include <stdio.h>
/* counts 1-bits in x */
-int bitcount(unsigned x);
-
-int main(int argc, char *argv[]) { return 0; }
-
int bitcount(unsigned x) {
// Explanation: on a two's complement system, x - 1 is performed by
// adding the two's complement of 1 (i.e. 111...1) to x. Adding 1 to