Lines Matching defs:BITMAP_BITS
30 #define BITMAP_BITS (sizeof(BITMAP_WTYPE) * 8)
31 #define BITMAP_WMASK ((BITMAP_WTYPE)BITMAP_BITS - 1)
77 if (b->len == 0 || (n / BITMAP_BITS) > b->top)
79 return (b->d[n / BITMAP_BITS] >> (n & BITMAP_WMASK)) & 1;
90 nlen = (n / BITMAP_BITS) + 1;
109 offset = n / BITMAP_BITS;
133 offset = n / BITMAP_BITS;
154 bits = (b->top + 1) * BITMAP_BITS;
155 while (!(w & ((BITMAP_WTYPE)1 << (BITMAP_BITS - 1)))) {
209 shift = BITMAP_BITS - 8;