Lines Matching defs: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;
223 while (en->next(en, &key, (void **)(&bit)) == ANTLR3_SUCCESS)
225 bitSet->add(bitSet, (ANTLR3_UINT32)bit);
234 /// Creates a new bitset with at least one 64 bit bset of bits, but as
235 /// many 64 bit sets as are required.
238 /// A variable number of bits to add to the set, ending in -1 (impossible bit).
241 /// A new bit set with all of the specified bitmaps in it and the API
260 // the input parameter is the bit number (0 based)
262 // bit + 1 bits. If any arguments indicate a
263 // a bit higher than the default number of bits (0 means default size)
301 /// \param[in] bit
302 /// A variable number of bits to add to the set, ending in -1 (impossible bit).
305 /// A new bit set with all of the specified elements added into it.
317 antlr3BitsetOf(ANTLR3_INT32 bit, ...)
324 // the input parameter is the bit number (0 based)
326 // bit + 1 bits. If any arguments indicate a
327 // a bit higher than the default number of bits (0 menas default size)
340 va_start(ap, bit);
341 while (bit != -1)
343 antlr3BitsetAdd(bitset, bit);
344 bit = va_arg(ap, ANTLR3_UINT32);
379 antlr3BitsetAdd(pANTLR3_BITSET bitset, ANTLR3_INT32 bit)
383 word = wordNumber(bit);
387 growToInclude(bitset, bit);
390 bitset->blist.bits[word] |= bitMask(bit);
421 growToInclude(pANTLR3_BITSET bitset, ANTLR3_INT32 bit)
427 nw = numWordsToHold(bit);
487 ANTLR3_INT8 bit;
499 for (bit = ANTLR3_BITSET_BITS - 1; bit >= 0; bit--)
501 if ((bitset->blist.bits[i] & (((ANTLR3_BITWORD)1) << bit)) != 0)
571 antlr3BitsetMember(pANTLR3_BITSET bitset, ANTLR3_UINT32 bit)
575 wordNo = wordNumber(bit);
582 if ((bitset->blist.bits[wordNo] & bitMask(bit)) == 0)
593 antlr3BitsetRemove(pANTLR3_BITSET bitset, ANTLR3_UINT32 bit)
597 wordNo = wordNumber(bit);
601 bitset->blist.bits[wordNo] &= ~(bitMask(bit));
621 numWordsToHold(ANTLR3_UINT32 bit)
623 return (bit >> ANTLR3_BITSET_LOG_BITS) + 1;
627 wordNumber(ANTLR3_UINT32 bit)
629 return bit >> ANTLR3_BITSET_LOG_BITS;