*/
static inline size_t bitset_next_clear(const bitset_t *bs, size_t pos)
{
- if (pos >= bs->size)
- return (size_t)-1;
return rbitset_next_max(bs->data, pos, bs->size, false);
}
*/
static inline size_t bitset_next_set(const bitset_t *bs, size_t pos)
{
- if (pos >= bs->size)
- return (size_t)-1;
return rbitset_next_max(bs->data, pos, bs->size, true);
}