BT_NBIPUL
for (i = BT_NBIPUL - 1; i; i--)
for (j = 0, m = 1; j < BT_NBIPUL; j++, m <<= 1)
start = i * BT_NBIPUL + j;
end = i * BT_NBIPUL + j - 1;
end = i * BT_NBIPUL - 1;
for (j = 0, m = 1; j < BT_NBIPUL; j++, m <<= 1) {
cpu = i * BT_NBIPUL + j;
ulong_t maxb = (wx == maxw) ? nbits & BT_ULMASK : BT_NBIPUL - 1;
dptr->newdqactmap = kmem_zalloc(((numpris / BT_NBIPUL) + 1) *
((dptr->oldnglobpris / BT_NBIPUL) + 1) *
((dptr->oldnglobpris / BT_NBIPUL) + 1) * sizeof (long));
newdqactmap = kmem_zalloc(((v.v_nglobpris / BT_NBIPUL) + 1) *
static size_t sysevent_minor_bits = BT_NBIPUL;
if (sysevent_minor_bits + BT_NBIPUL > SYSEVENT_MINOR_MAX) {
BT_SIZEOFMAP(sysevent_minor_bits + BT_NBIPUL), KM_SLEEP);
sysevent_minor_bits += BT_NBIPUL;
#define NLM_BMAP_WORDS (NLM_BMAP_NITEMS / BT_NBIPUL)
maxbit = wx == maxword ? nbits & BT_ULMASK : BT_NBIPUL - 1;
return (b->bs_words * BT_NBIPUL);
ASSERT(b->bs_words * BT_NBIPUL > pos);
ASSERT(b->bs_words * BT_NBIPUL > pos);
ASSERT(b->bs_words * BT_NBIPUL > pos);
ASSERT(b->bs_words * BT_NBIPUL > pos);
ASSERT(b->bs_words * BT_NBIPUL > pos);
ASSERT(b->bs_words * BT_NBIPUL > pos);
if (pos >= b->bs_words * BT_NBIPUL)
rotate_bit = seed % BT_NBIPUL;
rotated_word = (w >> rotate_bit) | (w << (BT_NBIPUL - rotate_bit));
elt = ((elt + rotate_bit) % BT_NBIPUL);
elt += i * BT_NBIPUL;
cpu += i * BT_NBIPUL;
*smallestid = bit + (i * BT_NBIPUL);
*largestid = bit + (j * BT_NBIPUL);
sc_bitmap_words = howmany(sc_bitmap_len, BT_NBIPUL);
(((nbits) + BT_NBIPUL - 1l) / BT_NBIPUL)
(bitindex) % BT_NBIPUL); }
(bitindex) % BT_NBIPUL); }
#define BT_ULMASK (BT_NBIPUL - 1) /* to extract bit index */
newmap = kmem_zalloc((newsize / BT_NBIPUL) * sizeof (ulong_t),
(pcp->pc_mapsize / BT_NBIPUL) * sizeof (ulong_t));
(pcp->pc_mapsize /BT_NBIPUL) * sizeof (ulong_t));
pcp->pc_bitmap = kmem_zalloc((mapsize / BT_NBIPUL) * sizeof (ulong_t),
sizeof (ulong_t) * (pcp->pc_mapsize/BT_NBIPUL));
ASSERT(pmem_pgcnt % BT_NBIPUL == 0);
static size_t vlds_minor_bits = BT_NBIPUL;
if (vlds_minor_bits + BT_NBIPUL > VLDS_MINOR_MAX) {
BT_SIZEOFMAP(vlds_minor_bits + BT_NBIPUL), KM_SLEEP);
vlds_minor_bits += BT_NBIPUL;