| 192 | } |
| 193 | |
| 194 | static inline bool |
| 195 | bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit) { |
| 196 | size_t goff; |
| 197 | bitmap_t g; |
| 198 | |
| 199 | assert(bit < binfo->nbits); |
| 200 | goff = bit >> LG_BITMAP_GROUP_NBITS; |
| 201 | g = bitmap[goff]; |
| 202 | return !(g & (ZU(1) << (bit & BITMAP_GROUP_NBITS_MASK))); |
| 203 | } |
| 204 | |
| 205 | static inline void |
| 206 | bitmap_set(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit) { |
no outgoing calls