| 133 | } |
| 134 | |
| 135 | static int hb_bitvec_bit(hb_bitvec_t *bv, int n) |
| 136 | { |
| 137 | if (n >= bv->size) |
| 138 | return 0; // Error. Should never happen. |
| 139 | |
| 140 | int word = n >> 5; |
| 141 | uint32_t bit = 1 << (n & 0x1F); |
| 142 | return !!(bv->vec[word] & bit); |
| 143 | } |
| 144 | |
| 145 | static int hb_bitvec_any(hb_bitvec_t *bv) |
| 146 | { |