Home | History | Annotate | Download | only in lib

Lines Matching refs:bitset

22 #include "bitset.h"
36 /* Return number of bytes required to create a N_BIT bitset
37 of TYPE. The bitset may grow to require more bytes than this. */
72 /* Initialise bitset BSET of TYPE for N_BITS. */
73 bitset
74 bitset_init (bitset bset, bitset_bindex n_bits, enum bitset_type type)
99 /* Select a bitset type for a set of N_BITS and with attribute hints
111 /* Choose the type of bitset. Note that sometimes we will be asked
112 for a zero length fixed size bitset. */
132 /* Create a bitset of N_BITS of type TYPE. */
133 bitset
137 bitset bset;
151 /* Create a bitset of N_BITS of type TYPE. */
152 bitset
157 bitset bset;
168 /* Create a bitset of N_BITS and with attribute hints specified by
170 bitset
181 /* Free bitset BSET. */
183 bitset_free (bitset bset)
190 /* Free bitset BSET allocated on obstack. */
192 bitset_obstack_free (bitset bset)
198 /* Return bitset type. */
200 bitset_type_get (bitset bset)
212 /* Return name of bitset type. */
214 bitset_type_name_get (bitset bset)
227 bitset_next (bitset src, bitset_bindex bitno)
240 bitset_compatible_p (bitset bset1, bitset bset2)
249 bitset_prev (bitset src, bitset_bindex bitno)
262 bitset_first (bitset src)
270 bitset_last (bitset src)
278 bitset_only_set_p (bitset src, bitset_bindex bitno)
289 /* Print contents of bitset BSET to FILE. */
291 bitset_print (FILE *file, bitset bset, bool verbose)
319 /* Dump bitset BSET to FILE. */
321 bitset_dump (FILE *file, bitset bset)
336 /* Toggle bit BITNO in bitset BSET and the new value of the bit. */
338 bitset_toggle_ (bitset bset, bitset_bindex bitno)
355 /* Return number of bits in bitset SRC. */
357 bitset_size_ (bitset src)
363 /* Return number of bits set in bitset SRC. */
365 bitset_count_ (bitset src)
373 bitset implementation that uses a direct technique (based on
387 bitset types. */
389 bitset_copy_ (bitset dst, bitset src)
394 /* Convert bitset types. We assume that the DST bitset
395 is large enough to hold the SRC bitset. */
409 bitset_op4_cmp (bitset dst, bitset src1, bitset src2, bitset src3,
414 bitset tmp;
416 /* Create temporary bitset. */
450 bitset_and_or_ (bitset dst, bitset src1, bitset src2, bitset src3)
459 bitset_and_or_cmp_ (bitset dst, bitset src1, bitset src2, bitset src3)
467 bitset_andn_or_ (bitset dst, bitset src1, bitset src2, bitset src3)
476 bitset_andn_or_cmp_ (bitset dst, bitset src1, bitset src2, bitset src3)
484 bitset_or_and_ (bitset dst, bitset src1, bitset src2, bitset src3)
493 bitset_or_and_cmp_ (bitset dst, bitset src1, bitset src2, bitset src3)
499 /* Function to be called from debugger to print bitset. */
501 debug_bitset (bitset bset)