Lines Matching defs:bset

165 lbitset_elt_unlink (bitset bset, lbitset_elt *elt)
176 if (LBITSET_HEAD (bset) == elt)
177 LBITSET_HEAD (bset) = next;
178 if (LBITSET_TAIL (bset) == elt)
179 LBITSET_TAIL (bset) = prev;
184 if (LBITSET_CURRENT (bset) == elt)
188 bset->b.cdata = next->words;
189 bset->b.cindex = next->index;
193 bset->b.cdata = prev->words;
194 bset->b.cindex = prev->index;
198 bset->b.csize = 0;
199 bset->b.cdata = 0;
210 lbitset_prune (bitset bset, lbitset_elt *elt)
219 LBITSET_TAIL (bset) = elt->prev;
220 bset->b.cdata = elt->prev->words;
221 bset->b.cindex = elt->prev->index;
226 LBITSET_HEAD (bset) = 0;
227 LBITSET_TAIL (bset) = 0;
228 bset->b.cdata = 0;
229 bset->b.csize = 0;
256 lbitset_elt_link (bitset bset, lbitset_elt *elt)
262 if (bset->b.csize)
263 current = LBITSET_CURRENT (bset);
265 current = LBITSET_HEAD (bset);
268 if (LBITSET_HEAD (bset) == 0)
271 LBITSET_HEAD (bset) = elt;
272 LBITSET_TAIL (bset) = elt;
277 else if (windex < bset->b.cindex)
286 LBITSET_HEAD (bset) = elt;
303 LBITSET_TAIL (bset) = elt;
311 bset->b.cindex = windex;
312 bset->b.csize = LBITSET_ELT_WORDS;
313 bset->b.cdata = elt->words;
318 lbitset_elt_find (bitset bset, bitset_windex windex,
324 if (bset->b.csize)
326 current = LBITSET_CURRENT (bset);
328 if ((windex - bset->b.cindex) < bset->b.csize)
333 current = LBITSET_HEAD (bset);
338 if (windex < bset->b.cindex)
356 bset->b.cindex = elt->index;
357 bset->b.csize = LBITSET_ELT_WORDS;
358 bset->b.cdata = elt->words;
376 lbitset_elt_link (bset, elt);
387 lbitset_weed (bitset bset)
392 for (elt = LBITSET_HEAD (bset); elt; elt = next)
396 lbitset_elt_unlink (bset, elt);
403 lbitset_zero (bitset bset)
407 head = LBITSET_HEAD (bset);
412 lbitset_prune (bset, head);
558 lbitset_free (bitset bset)
560 lbitset_zero (bset);
568 lbitset_list_reverse (bitset bset, bitset_bindex *list,
581 elt = LBITSET_TAIL (bset);
663 lbitset_list (bitset bset, bitset_bindex *list,
673 head = LBITSET_HEAD (bset);
1358 lbitset_init (bitset bset, bitset_bindex n_bits ATTRIBUTE_UNUSED)
1360 BITSET_NBITS_ (bset) = n_bits;
1361 bset->b.vtable = &lbitset_vtable;
1362 return bset;
1380 debug_lbitset (bitset bset)
1385 if (!bset)
1388 for (elt = LBITSET_HEAD (bset); elt; elt = elt->next)