| 3001 | } |
| 3002 | |
| 3003 | static 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 | |
| 3030 | int test_bitmap_pseudo_merge_commits(struct repository *r, uint32_t n) |
| 3031 | { |