208 |
bitcnt = bitno % BITSET_WORD_BITS; |
bitcnt = bitno % BITSET_WORD_BITS; |
209 |
bitoff = windex * BITSET_WORD_BITS; |
bitoff = windex * BITSET_WORD_BITS; |
210 |
|
|
211 |
for (; windex != ~0U; windex--, bitoff -= BITSET_WORD_BITS, |
do |
|
bitcnt = BITSET_WORD_BITS - 1) |
|
212 |
{ |
{ |
213 |
word = srcp[windex] << (BITSET_WORD_BITS - 1 - bitcnt); |
word = srcp[windex] << (BITSET_WORD_BITS - 1 - bitcnt); |
214 |
for (; word; bitcnt--) |
for (; word; bitcnt--) |
224 |
} |
} |
225 |
word <<= 1; |
word <<= 1; |
226 |
} |
} |
227 |
|
bitoff -= BITSET_WORD_BITS; |
228 |
|
bitcnt = BITSET_WORD_BITS - 1; |
229 |
} |
} |
230 |
|
while (windex--); |
231 |
|
|
232 |
*next = n_bits - (bitoff + 1); |
*next = n_bits - (bitoff + 1); |
233 |
return count; |
return count; |
350 |
last_bit = ABITSET_N_BITS (dst) % BITSET_WORD_BITS; |
last_bit = ABITSET_N_BITS (dst) % BITSET_WORD_BITS; |
351 |
if (last_bit) |
if (last_bit) |
352 |
ABITSET_WORDS (dst)[dst->b.csize - 1] &= |
ABITSET_WORDS (dst)[dst->b.csize - 1] &= |
353 |
(bitset_word) ((1 << last_bit) - 1); |
((bitset_word) 1 << last_bit) - 1; |
354 |
} |
} |
355 |
|
|
356 |
|
|
372 |
break; |
break; |
373 |
|
|
374 |
case BITSET_OP_ONES: |
case BITSET_OP_ONES: |
375 |
memset (dstp, ~0, bytes); |
memset (dstp, -1, bytes); |
376 |
abitset_unused_clear (dst); |
abitset_unused_clear (dst); |
377 |
break; |
break; |
378 |
|
|