Skip to content

Commit 44301d2

Browse files
derrickstoleegitster
authored andcommitted
ewah_bitmap: delete unused 'ewah_not()'
Reported-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 19436fe commit 44301d2

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

ewah/ewah_bitmap.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -376,25 +376,6 @@ void ewah_iterator_init(struct ewah_iterator *it, struct ewah_bitmap *parent)
376376
read_new_rlw(it);
377377
}
378378

379-
void ewah_not(struct ewah_bitmap *self)
380-
{
381-
size_t pointer = 0;
382-
383-
while (pointer < self->buffer_size) {
384-
eword_t *word = &self->buffer[pointer];
385-
size_t literals, k;
386-
387-
rlw_xor_run_bit(word);
388-
++pointer;
389-
390-
literals = rlw_get_literal_words(word);
391-
for (k = 0; k < literals; ++k) {
392-
self->buffer[pointer] = ~self->buffer[pointer];
393-
++pointer;
394-
}
395-
}
396-
}
397-
398379
void ewah_xor(
399380
struct ewah_bitmap *ewah_i,
400381
struct ewah_bitmap *ewah_j,

ewah/ewok.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ ssize_t ewah_read_mmap(struct ewah_bitmap *self, const void *map, size_t len);
9595

9696
uint32_t ewah_checksum(struct ewah_bitmap *self);
9797

98-
/**
99-
* Logical not (bitwise negation) in-place on the bitmap
100-
*
101-
* This operation is linear time based on the size of the bitmap.
102-
*/
103-
void ewah_not(struct ewah_bitmap *self);
104-
10598
/**
10699
* Call the given callback with the position of every single bit
107100
* that has been set on the bitmap.

0 commit comments

Comments
 (0)