summaryrefslogtreecommitdiff
path: root/ewah/ewok.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2020-12-08 22:04:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-12-08 22:48:16 (GMT)
commited03a58b655f661ef6f9efd8816efe0c8cf07fa0 (patch)
tree239bea07c453407c0462e82d41cedf0c6e66cad6 /ewah/ewok.h
parent6dc5ef759f25fbded11d235362c59f59498809e6 (diff)
downloadgit-ed03a58b655f661ef6f9efd8816efe0c8cf07fa0.zip
git-ed03a58b655f661ef6f9efd8816efe0c8cf07fa0.tar.gz
git-ed03a58b655f661ef6f9efd8816efe0c8cf07fa0.tar.bz2
bitmap: implement bitmap_is_subset()
The bitmap_is_subset() function checks if the 'self' bitmap contains any bitmaps that are not on in the 'other' bitmap. Up until this patch, it had a declaration, but no implementation or callers. A subsequent patch will want this function, so implement it here. Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewok.h')
-rw-r--r--ewah/ewok.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ewah/ewok.h b/ewah/ewok.h
index 1fc555e..6692096 100644
--- a/ewah/ewok.h
+++ b/ewah/ewok.h
@@ -180,7 +180,7 @@ int bitmap_get(struct bitmap *self, size_t pos);
void bitmap_reset(struct bitmap *self);
void bitmap_free(struct bitmap *self);
int bitmap_equals(struct bitmap *self, struct bitmap *other);
-int bitmap_is_subset(struct bitmap *self, struct bitmap *super);
+int bitmap_is_subset(struct bitmap *self, struct bitmap *other);
struct ewah_bitmap * bitmap_to_ewah(struct bitmap *bitmap);
struct bitmap *ewah_to_bitmap(struct ewah_bitmap *ewah);