585 |
|
|
586 |
lbitset_elt_find (dst, windex, LBITSET_CREATE); |
lbitset_elt_find (dst, windex, LBITSET_CREATE); |
587 |
|
|
588 |
dst->b.cdata[windex - dst->b.cindex] |= (1 << (bitno % BITSET_WORD_BITS)); |
dst->b.cdata[windex - dst->b.cindex] |= |
589 |
|
(bitset_word) 1 << (bitno % BITSET_WORD_BITS); |
590 |
} |
} |
591 |
|
|
592 |
|
|
601 |
if (!lbitset_elt_find (dst, windex, LBITSET_FIND)) |
if (!lbitset_elt_find (dst, windex, LBITSET_FIND)) |
602 |
return; |
return; |
603 |
|
|
604 |
dst->b.cdata[windex - dst->b.cindex] &= ~(1 << (bitno % BITSET_WORD_BITS)); |
dst->b.cdata[windex - dst->b.cindex] &= |
605 |
|
~((bitset_word) 1 << (bitno % BITSET_WORD_BITS)); |
606 |
|
|
607 |
/* If all the data is zero, perhaps we should unlink it now... */ |
/* If all the data is zero, perhaps we should unlink it now... */ |
608 |
} |
} |
953 |
{ |
{ |
954 |
/* Create new elements if they cannot be found. */ |
/* Create new elements if they cannot be found. */ |
955 |
elt = lbitset_elt_find (dst, i, LBITSET_CREATE); |
elt = lbitset_elt_find (dst, i, LBITSET_CREATE); |
956 |
memset (elt->words, ~0, sizeof (elt->words)); |
memset (elt->words, -1, sizeof (elt->words)); |
957 |
} |
} |
958 |
break; |
break; |
959 |
|
|