| 1645 | }; |
| 1646 | |
| 1647 | struct bitbag *bitbag_create(int max_ndx) |
| 1648 | { |
| 1649 | struct bitbag *bb = new(struct bitbag); |
| 1650 | bb->slot_cnt = (max_ndx + BB_PER_SLOT_BITS - 1) / BB_PER_SLOT_BITS; |
| 1651 | |
| 1652 | bb->bits = new_array0(uint32*, bb->slot_cnt); |
| 1653 | |
| 1654 | return bb; |
| 1655 | } |
| 1656 | |
| 1657 | void bitbag_set_bit(struct bitbag *bb, int ndx) |
| 1658 | { |