Lines Matching refs:nbits

36 #define BITMAP_BITS2GROUPS(nbits)					\  argument
37 (((nbits) + BITMAP_GROUP_NBITS_MASK) >> LG_BITMAP_GROUP_NBITS)
42 #define BITMAP_GROUPS_L0(nbits) \ argument
43 BITMAP_BITS2GROUPS(nbits)
44 #define BITMAP_GROUPS_L1(nbits) \ argument
45 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(nbits))
46 #define BITMAP_GROUPS_L2(nbits) \ argument
47 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS((nbits))))
48 #define BITMAP_GROUPS_L3(nbits) \ argument
50 BITMAP_BITS2GROUPS((nbits)))))
51 #define BITMAP_GROUPS_L4(nbits) \ argument
53 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS((nbits))))))
59 #define BITMAP_GROUPS_1_LEVEL(nbits) \ argument
60 BITMAP_GROUPS_L0(nbits)
61 #define BITMAP_GROUPS_2_LEVEL(nbits) \ argument
62 (BITMAP_GROUPS_1_LEVEL(nbits) + BITMAP_GROUPS_L1(nbits))
63 #define BITMAP_GROUPS_3_LEVEL(nbits) \ argument
64 (BITMAP_GROUPS_2_LEVEL(nbits) + BITMAP_GROUPS_L2(nbits))
65 #define BITMAP_GROUPS_4_LEVEL(nbits) \ argument
66 (BITMAP_GROUPS_3_LEVEL(nbits) + BITMAP_GROUPS_L3(nbits))
67 #define BITMAP_GROUPS_5_LEVEL(nbits) \ argument
68 (BITMAP_GROUPS_4_LEVEL(nbits) + BITMAP_GROUPS_L4(nbits))
76 # define BITMAP_GROUPS(nbits) BITMAP_GROUPS_1_LEVEL(nbits) argument
79 # define BITMAP_GROUPS(nbits) BITMAP_GROUPS_2_LEVEL(nbits) argument
82 # define BITMAP_GROUPS(nbits) BITMAP_GROUPS_3_LEVEL(nbits) argument
85 # define BITMAP_GROUPS(nbits) BITMAP_GROUPS_4_LEVEL(nbits) argument
88 # define BITMAP_GROUPS(nbits) BITMAP_GROUPS_5_LEVEL(nbits) argument
110 #define BITMAP_INFO_INITIALIZER(nbits) { \ argument
112 nbits, \
114 (BITMAP_GROUPS_L0(nbits) > BITMAP_GROUPS_L1(nbits)) + \
115 (BITMAP_GROUPS_L1(nbits) > BITMAP_GROUPS_L2(nbits)) + \
116 (BITMAP_GROUPS_L2(nbits) > BITMAP_GROUPS_L3(nbits)) + \
117 (BITMAP_GROUPS_L3(nbits) > BITMAP_GROUPS_L4(nbits)) + 1, \
121 {BITMAP_GROUPS_L0(nbits)}, \
122 {BITMAP_GROUPS_L1(nbits) + BITMAP_GROUPS_L0(nbits)}, \
123 {BITMAP_GROUPS_L2(nbits) + BITMAP_GROUPS_L1(nbits) + \
124 BITMAP_GROUPS_L0(nbits)}, \
125 {BITMAP_GROUPS_L3(nbits) + BITMAP_GROUPS_L2(nbits) + \
126 BITMAP_GROUPS_L1(nbits) + BITMAP_GROUPS_L0(nbits)}, \
127 {BITMAP_GROUPS_L4(nbits) + BITMAP_GROUPS_L3(nbits) + \
128 BITMAP_GROUPS_L2(nbits) + BITMAP_GROUPS_L1(nbits) \
129 + BITMAP_GROUPS_L0(nbits)} \
135 #define BITMAP_GROUPS(nbits) BITMAP_BITS2GROUPS(nbits) argument
138 #define BITMAP_INFO_INITIALIZER(nbits) { \ argument
140 nbits, \
142 BITMAP_BITS2GROUPS(nbits) \
154 size_t nbits; member
171 void bitmap_info_init(bitmap_info_t *binfo, size_t nbits);
199 assert(bit < binfo->nbits); in bitmap_get()
211 assert(bit < binfo->nbits); in bitmap_set()
243 assert(min_bit < binfo->nbits); in bitmap_ffu()
259 return binfo->nbits; in bitmap_ffu()
271 if (sib_base >= binfo->nbits) { in bitmap_ffu()
272 return binfo->nbits; in bitmap_ffu()
280 assert(bit < binfo->nbits); in bitmap_ffu()
295 return binfo->nbits; in bitmap_ffu()
337 assert(bit < binfo->nbits); in bitmap_unset()