MCPcopy Index your code
hub / github.com/git/git / dump_ewah_object_ids

Function dump_ewah_object_ids

pack-bitmap.c:3003–3028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3001}
3002
3003static void dump_ewah_object_ids(struct bitmap_index *bitmap_git,
3004 struct ewah_bitmap *bitmap)
3005
3006{
3007 struct ewah_iterator it;
3008 eword_t word;
3009 uint32_t pos = 0;
3010
3011 ewah_iterator_init(&it, bitmap);
3012
3013 while (ewah_iterator_next(&word, &it)) {
3014 struct object_id oid;
3015 uint32_t offset;
3016
3017 for (offset = 0; offset < BITS_IN_EWORD; offset++) {
3018 if (!(word >> offset))
3019 break;
3020
3021 offset += ewah_bit_ctz64(word >> offset);
3022
3023 bit_pos_to_object_id(bitmap_git, pos + offset, &oid);
3024 printf("%s\n", oid_to_hex(&oid));
3025 }
3026 pos += BITS_IN_EWORD;
3027 }
3028}
3029
3030int test_bitmap_pseudo_merge_commits(struct repository *r, uint32_t n)
3031{

Calls 5

ewah_iterator_initFunction · 0.85
ewah_iterator_nextFunction · 0.85
ewah_bit_ctz64Function · 0.85
bit_pos_to_object_idFunction · 0.85
oid_to_hexFunction · 0.85

Tested by 2