diff options
author | Jeff King <peff@peff.net> | 2020-02-14 13:22:34 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-14 10:46:22 -0800 |
commit | cc4aa28506e079e0c17cfbe78743530795803ea8 (patch) | |
tree | f8881832cb2e89da9722e2330712db21a406fa62 /ewah/ewok.h | |
parent | rev-list: use bitmap filters for traversal (diff) | |
download | tgif-cc4aa28506e079e0c17cfbe78743530795803ea8.tar.xz |
bitmap: add bitmap_unset() function
We've never needed to unset an individual bit in a bitmap until now.
Typically they start with all bits unset and we bitmap_set() them, or we
are applying another bitmap as a mask. But the easiest way to apply an
object filter to a bitmap result will be to unset the individual bits.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewok.h')
-rw-r--r-- | ewah/ewok.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ewah/ewok.h b/ewah/ewok.h index 84b2a29faa..59f4ef7c4f 100644 --- a/ewah/ewok.h +++ b/ewah/ewok.h @@ -173,6 +173,7 @@ struct bitmap { struct bitmap *bitmap_new(void); void bitmap_set(struct bitmap *self, size_t pos); +void bitmap_unset(struct bitmap *self, size_t pos); int bitmap_get(struct bitmap *self, size_t pos); void bitmap_reset(struct bitmap *self); void bitmap_free(struct bitmap *self); |