179 |
#define bitset_test(SRC, BITNO) BITSET_TEST_ (SRC, BITNO) |
#define bitset_test(SRC, BITNO) BITSET_TEST_ (SRC, BITNO) |
180 |
#endif |
#endif |
181 |
|
|
182 |
|
/* Toggle bit BITNO in bitset BSET and return non-zero if now set. */ |
183 |
|
extern int bitset_toggle PARAMS ((bitset, bitset_bindex)); |
184 |
|
|
185 |
/* DST = 0. */ |
/* DST = 0. */ |
186 |
extern int bitset_zero PARAMS ((bitset)); |
extern int bitset_zero PARAMS ((bitset)); |
187 |
|
|
218 |
/* DST = SRC1 & ~SRC2. Return non-zero if DST != SRC1 & ~SRC2. */ |
/* DST = SRC1 & ~SRC2. Return non-zero if DST != SRC1 & ~SRC2. */ |
219 |
extern int bitset_andn PARAMS ((bitset, bitset, bitset)); |
extern int bitset_andn PARAMS ((bitset, bitset, bitset)); |
220 |
|
|
|
/* DST = SRC1 | ~SRC2. Return non-zero if DST != SRC1 | ~SRC2. */ |
|
|
extern int bitset_orn PARAMS ((bitset, bitset, bitset)); |
|
|
|
|
221 |
/* DST = (SRC1 | SRC2) & SRC3. Return non-zero if |
/* DST = (SRC1 | SRC2) & SRC3. Return non-zero if |
222 |
DST != (SRC1 | SRC2) & SRC3. */ |
DST != (SRC1 | SRC2) & SRC3. */ |
223 |
extern int bitset_or_and PARAMS ((bitset, bitset, bitset, bitset)); |
extern int bitset_or_and PARAMS ((bitset, bitset, bitset, bitset)); |
236 |
/* Find previous bit set in BSET starting from and including BITNO. */ |
/* Find previous bit set in BSET starting from and including BITNO. */ |
237 |
extern int bitset_prev PARAMS ((bitset, bitset_bindex)); |
extern int bitset_prev PARAMS ((bitset, bitset_bindex)); |
238 |
|
|
239 |
|
/* Return non-zero if BITNO in SRC is the only set bit. */ |
240 |
|
extern int bitset_only_set_p PARAMS ((bitset, bitset_bindex)); |
241 |
|
|
242 |
/* Find list of up to NUM bits set in BSET starting from and including |
/* Find list of up to NUM bits set in BSET starting from and including |
243 |
*NEXT. Return with actual number of bits found and with *NEXT |
*NEXT. Return with actual number of bits found and with *NEXT |
244 |
indicating where search stopped. */ |
indicating where search stopped. */ |