Lines Matching refs:bitn
38 void gb_clear(struct gb_t_map *map, u32 bitn)
42 mask = 1L << (bitn % BITS_PER_LONG);
43 map->words[bitn / BITS_PER_LONG] &= ~mask;
93 u32 bitn;
95 bitn = gb_minclear(map);
97 if (bitn != GB_NOBITS)
98 gb_set(map, bitn);
100 return bitn;
142 void gb_set(struct gb_t_map *map, u32 bitn)
146 mask = 1L << (bitn % BITS_PER_LONG);
147 map->words[bitn / BITS_PER_LONG] |= mask;
156 bool gb_test(struct gb_t_map *map, u32 bitn)
162 mask = 1L << (bitn % BITS_PER_LONG);
163 word = map->words[bitn / BITS_PER_LONG];