Home | History | Annotate | Download | only in lib

Lines Matching refs:bitno

510 /* Set bit BITNO in bitset DST.  */
512 ebitset_set (bitset dst, bitset_bindex bitno)
514 bitset_windex windex = bitno / BITSET_WORD_BITS;
516 ebitset_elt_find (dst, bitno, EBITSET_CREATE);
519 (bitset_word) 1 << (bitno % BITSET_WORD_BITS);
523 /* Reset bit BITNO in bitset DST. */
525 ebitset_reset (bitset dst, bitset_bindex bitno)
527 bitset_windex windex = bitno / BITSET_WORD_BITS;
529 if (!ebitset_elt_find (dst, bitno, EBITSET_FIND))
533 ~((bitset_word) 1 << (bitno % BITSET_WORD_BITS));
541 /* Test bit BITNO in bitset SRC. */
543 ebitset_test (bitset src, bitset_bindex bitno)
545 bitset_windex windex = bitno / BITSET_WORD_BITS;
547 return (ebitset_elt_find (src, bitno, EBITSET_FIND)
549 >> (bitno % BITSET_WORD_BITS))
570 bitset_bindex bitno;
593 bitno = n_bits - (rbitno + 1);
595 windex = bitno / BITSET_WORD_BITS;
596 eindex = bitno / EBITSET_ELT_BITS;
603 bcount = bitno % BITSET_WORD_BITS;
658 bitset_bindex bitno;
670 bitno = *next;
675 eindex = bitno / EBITSET_ELT_BITS;
677 if (bitno % EBITSET_ELT_BITS)
687 windex = bitno / BITSET_WORD_BITS;
692 word = srcp[windex - woffset] >> (bitno % BITSET_WORD_BITS);
694 for (; word; bitno++)
698 list[count++] = bitno;
701 *next = bitno + 1;
707 bitno = (windex + 1) * BITSET_WORD_BITS;
741 bitno += 16;
746 bitno += 8;
748 for (; word; bitno++)
751 list[count++] = bitno;
756 bitno = windex * BITSET_WORD_BITS;
764 bitno += 16;
766 for (; word; bitno++)
769 list[count++] = bitno;
774 bitno = windex * BITSET_WORD_BITS;
778 bitno = windex * BITSET_WORD_BITS;
786 bitno += 16;
791 bitno += 8;
793 for (; word; bitno++)
796 list[count++] = bitno;
810 bitno = windex * BITSET_WORD_BITS;
812 for (word = srcp[i]; word; bitno++)
816 list[count++] = bitno;
819 *next = bitno + 1;
829 *next = bitno;