| 162 | } |
| 163 | |
| 164 | static inline bool bitmap_full(const bitmap *b, unsigned long nbits) |
| 165 | { |
| 166 | unsigned long i; |
| 167 | |
| 168 | for (i = 0; i < BITMAP_HEADWORDS(nbits); i++) { |
| 169 | if (b[i].w != -1UL) |
| 170 | return false; |
| 171 | } |
| 172 | if (BITMAP_HASTAIL(nbits) && |
| 173 | (BITMAP_TAIL(b, nbits) != BITMAP_TAILBITS(nbits))) |
| 174 | return false; |
| 175 | |
| 176 | return true; |
| 177 | } |
| 178 | |
| 179 | static inline bool bitmap_empty(const bitmap *b, unsigned long nbits) |
| 180 | { |
no outgoing calls