]> granicus.if.org Git - git/commitdiff
ewah_bitmap: delete unused 'ewah_not()'
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 15 Jun 2018 18:27:48 +0000 (18:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jun 2018 17:16:19 +0000 (10:16 -0700)
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>
ewah/ewah_bitmap.c
ewah/ewok.h

index 559adde37c2da8632f9415f92fed2f7b749b9066..3fa3edf2a31e2614b9bb3a18b494d1ec297ab9f7 100644 (file)
@@ -376,25 +376,6 @@ void ewah_iterator_init(struct ewah_iterator *it, struct ewah_bitmap *parent)
                read_new_rlw(it);
 }
 
-void ewah_not(struct ewah_bitmap *self)
-{
-       size_t pointer = 0;
-
-       while (pointer < self->buffer_size) {
-               eword_t *word = &self->buffer[pointer];
-               size_t literals, k;
-
-               rlw_xor_run_bit(word);
-               ++pointer;
-
-               literals = rlw_get_literal_words(word);
-               for (k = 0; k < literals; ++k) {
-                       self->buffer[pointer] = ~self->buffer[pointer];
-                       ++pointer;
-               }
-       }
-}
-
 void ewah_xor(
        struct ewah_bitmap *ewah_i,
        struct ewah_bitmap *ewah_j,
index 0ee0c702173b69edfb2ba85bdf70b7dc1a43452c..a603fa3dd81cd50581adbc67f0336a9f0a9569f1 100644 (file)
@@ -95,13 +95,6 @@ ssize_t ewah_read_mmap(struct ewah_bitmap *self, const void *map, size_t len);
 
 uint32_t ewah_checksum(struct ewah_bitmap *self);
 
-/**
- * Logical not (bitwise negation) in-place on the bitmap
- *
- * This operation is linear time based on the size of the bitmap.
- */
-void ewah_not(struct ewah_bitmap *self);
-
 /**
  * Call the given callback with the position of every single bit
  * that has been set on the bitmap.