Browse Source

* bitmap.c : cleanup

master
Alex 'AdUser' Z 11 years ago
parent
commit
0d276f6f78
  1. 6
      src/bitmap.c

6
src/bitmap.c

@ -48,12 +48,6 @@ bitmap_compare(const unsigned char *a,
for (i = 0; i < BITMAP_SIZE; i++, a++, b++) { for (i = 0; i < BITMAP_SIZE; i++, a++, b++) {
diff = *a ^ *b; diff = *a ^ *b;
/* bruteforce:
while (diff) {
cnt += (diff & 1);
diff >>= 1;
}
*/
cnt += dict[diff]; cnt += dict[diff];
} }

Loading…
Cancel
Save