MCPcopy Create free account
hub / github.com/git/git / bitmap_equals_ewah

Function bitmap_equals_ewah

ewah/bitmap.c:263–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263int bitmap_equals_ewah(struct bitmap *self, struct ewah_bitmap *other)
264{
265 struct ewah_iterator it;
266 eword_t word;
267 size_t i = 0;
268
269 ewah_iterator_init(&it, other);
270
271 while (ewah_iterator_next(&word, &it))
272 if (word != (i < self->word_alloc ? self->words[i++] : 0))
273 return 0;
274
275 for (; i < self->word_alloc; i++)
276 if (self->words[i])
277 return 0;
278
279 return 1;
280}
281
282int bitmap_is_subset(struct bitmap *self, struct bitmap *other)
283{

Callers 1

pseudo_merge_for_parentsFunction · 0.85

Calls 2

ewah_iterator_initFunction · 0.85
ewah_iterator_nextFunction · 0.85

Tested by

no test coverage detected