Lines Matching defs:bset
72 /* Initialise bitset BSET of TYPE for N_BITS. */
74 bitset_init (bitset bset, bitset_bindex n_bits, enum bitset_type type)
77 return bitset_stats_init (bset, n_bits, type);
85 return abitset_init (bset, n_bits);
88 return lbitset_init (bset, n_bits);
91 return ebitset_init (bset, n_bits);
94 return vbitset_init (bset, n_bits);
137 bitset bset;
141 bset = xcalloc (1, bytes);
147 return bitset_init (bset, n_bits, type);
157 bitset bset;
161 bset = obstack_alloc (bobstack, bytes);
162 memset (bset, 0, bytes);
164 return bitset_init (bset, n_bits, type);
181 /* Free bitset BSET. */
183 bitset_free (bitset bset)
185 BITSET_FREE_ (bset);
186 free (bset);
190 /* Free bitset BSET allocated on obstack. */
192 bitset_obstack_free (bitset bset)
194 BITSET_FREE_ (bset);
200 bitset_type_get (bitset bset)
204 type = BITSET_TYPE_ (bset);
208 return bitset_stats_type_get (bset);
214 bitset_type_name_get (bitset bset)
218 type = bitset_type_get (bset);
289 /* Print contents of bitset BSET to FILE. */
291 bitset_print (FILE *file, bitset bset, bool verbose)
299 (unsigned long int) bitset_size (bset));
302 BITSET_FOR_EACH (iter, bset, i, 0)
319 /* Dump bitset BSET to FILE. */
321 bitset_dump (FILE *file, bitset bset)
323 bitset_print (file, bset, false);
336 /* Toggle bit BITNO in bitset BSET and the new value of the bit. */
338 bitset_toggle_ (bitset bset, bitset_bindex bitno)
342 if (bitset_test (bset, bitno))
344 bitset_reset (bset, bitno);
349 bitset_set (bset, bitno);
501 debug_bitset (bitset bset)
503 if (bset)
504 bitset_print (stderr, bset, true);