Lines Matching refs:bit

45 static	void			antlr3BitsetAdd			(pANTLR3_BITSET bitset, ANTLR3_INT32 bit);
47 static ANTLR3_BOOLEAN antlr3BitsetMember (pANTLR3_BITSET bitset, ANTLR3_UINT32 bit);
49 static void antlr3BitsetRemove (pANTLR3_BITSET bitset, ANTLR3_UINT32 bit);
55 static void growToInclude (pANTLR3_BITSET bitset, ANTLR3_INT32 bit);
58 static ANTLR3_UINT32 numWordsToHold (ANTLR3_UINT32 bit);
59 static ANTLR3_UINT32 wordNumber (ANTLR3_UINT32 bit);
213 ANTLR3_UINT64 bit; in antlr3BitsetList() local
223 while (en->next(en, &key, (void **)(&bit)) == ANTLR3_SUCCESS) in antlr3BitsetList()
225 bitSet->add(bitSet, (ANTLR3_UINT32)bit); in antlr3BitsetList()
317 antlr3BitsetOf(ANTLR3_INT32 bit, ...) in antlr3BitsetOf() argument
340 va_start(ap, bit); in antlr3BitsetOf()
341 while (bit != -1) in antlr3BitsetOf()
343 antlr3BitsetAdd(bitset, bit); in antlr3BitsetOf()
344 bit = va_arg(ap, ANTLR3_UINT32); in antlr3BitsetOf()
379 antlr3BitsetAdd(pANTLR3_BITSET bitset, ANTLR3_INT32 bit) in antlr3BitsetAdd() argument
383 word = wordNumber(bit); in antlr3BitsetAdd()
387 growToInclude(bitset, bit); in antlr3BitsetAdd()
390 bitset->blist.bits[word] |= bitMask(bit); in antlr3BitsetAdd()
421 growToInclude(pANTLR3_BITSET bitset, ANTLR3_INT32 bit) in growToInclude() argument
427 nw = numWordsToHold(bit); in growToInclude()
487 ANTLR3_INT8 bit; in antlr3BitsetSize() local
499 for (bit = ANTLR3_BITSET_BITS - 1; bit >= 0; bit--) in antlr3BitsetSize()
501 if ((bitset->blist.bits[i] & (((ANTLR3_BITWORD)1) << bit)) != 0) in antlr3BitsetSize()
571 antlr3BitsetMember(pANTLR3_BITSET bitset, ANTLR3_UINT32 bit) in antlr3BitsetMember() argument
575 wordNo = wordNumber(bit); in antlr3BitsetMember()
582 if ((bitset->blist.bits[wordNo] & bitMask(bit)) == 0) in antlr3BitsetMember()
593 antlr3BitsetRemove(pANTLR3_BITSET bitset, ANTLR3_UINT32 bit) in antlr3BitsetRemove() argument
597 wordNo = wordNumber(bit); in antlr3BitsetRemove()
601 bitset->blist.bits[wordNo] &= ~(bitMask(bit)); in antlr3BitsetRemove()
621 numWordsToHold(ANTLR3_UINT32 bit) in numWordsToHold() argument
623 return (bit >> ANTLR3_BITSET_LOG_BITS) + 1; in numWordsToHold()
627 wordNumber(ANTLR3_UINT32 bit) in wordNumber() argument
629 return bit >> ANTLR3_BITSET_LOG_BITS; in wordNumber()