| 151 | static int roots_without_bitmaps_nr; |
| 152 | |
| 153 | static 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 | |
| 172 | struct ewah_bitmap *read_bitmap(const unsigned char *map, |
| 173 | size_t map_size, size_t *map_pos) |
no test coverage detected