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

Function lookup_stored_bitmap

pack-bitmap.c:153–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151static int roots_without_bitmaps_nr;
152
153static struct ewah_bitmap *lookup_stored_bitmap(struct stored_bitmap *st)
154{
155 struct ewah_bitmap *parent;
156 struct ewah_bitmap *composed;
157
158 if (!st->xor)
159 return st->root;
160
161 composed = ewah_pool_new();
162 parent = lookup_stored_bitmap(st->xor);
163 ewah_xor(st->root, parent, composed);
164
165 ewah_pool_free(st->root);
166 st->root = composed;
167 st->xor = NULL;
168
169 return composed;
170}
171
172struct ewah_bitmap *read_bitmap(const unsigned char *map,
173 size_t map_size, size_t *map_pos)

Callers 1

find_bitmap_for_commitFunction · 0.85

Calls 3

ewah_pool_newFunction · 0.85
ewah_xorFunction · 0.85
ewah_pool_freeFunction · 0.85

Tested by

no test coverage detected