Lines Matching defs:offset
47 #define BITMAP_OFFSET_TO_NUM(offset, rem) ((offset) * sizeof(uint64_t) * 8 + (rem))
80 unsigned offset;
88 offset = BITMAP_NUM_TO_OFFSET(n);
90 if (offset >= b->n_bitmaps) {
91 if (!GREEDY_REALLOC0(b->bitmaps, b->bitmaps_allocated, offset + 1))
94 b->n_bitmaps = offset + 1;
99 b->bitmaps[offset] |= bitmask;
106 unsigned offset;
111 offset = BITMAP_NUM_TO_OFFSET(n);
113 if (offset >= b->n_bitmaps)
118 b->bitmaps[offset] &= ~bitmask;
123 unsigned offset;
128 offset = BITMAP_NUM_TO_OFFSET(n);
130 if (offset >= b->n_bitmaps)
135 return !!(b->bitmaps[offset] & bitmask);
163 unsigned offset, rem;
171 offset = BITMAP_NUM_TO_OFFSET(i->idx);
175 for (; offset < b->n_bitmaps; offset ++) {
176 if (b->bitmaps[offset]) {
178 if (b->bitmaps[offset] & bitmask) {
179 *n = BITMAP_OFFSET_TO_NUM(offset, rem);