• Home
  • Raw
  • Download

Lines Matching refs:blist

65     if	(bitset->blist.bits != NULL)  in antlr3BitsetFree()
67 ANTLR3_FREE(bitset->blist.bits); in antlr3BitsetFree()
68 bitset->blist.bits = NULL; in antlr3BitsetFree()
103 …bitset->blist.bits = (pANTLR3_BITWORD) ANTLR3_MALLOC((size_t)(numelements * sizeof(ANTLR3_BITWO… in antlr3BitsetNew()
104 if (bitset->blist.bits == NULL) in antlr3BitsetNew()
109 memset(bitset->blist.bits, 0, (size_t)(numelements * sizeof(ANTLR3_BITWORD))); in antlr3BitsetNew()
110 bitset->blist.length = numelements; in antlr3BitsetNew()
140 antlr3BitsetCopy(pANTLR3_BITSET_LIST blist) in antlr3BitsetCopy() argument
154 numElements = blist->length; in antlr3BitsetCopy()
165 bitset->blist.length = numElements; in antlr3BitsetCopy()
167 …bitset->blist.bits = (pANTLR3_BITWORD)ANTLR3_MALLOC((size_t)(numElements * sizeof(ANTLR3_BITWOR… in antlr3BitsetCopy()
169 if (bitset->blist.bits == NULL) in antlr3BitsetCopy()
175 …ANTLR3_MEMCPY(bitset->blist.bits, blist->bits, (ANTLR3_UINT64)(numElements * sizeof(ANTLR3_BITWORD… in antlr3BitsetCopy()
189 bitset = antlr3BitsetNew(ANTLR3_BITSET_BITS * inSet->blist.length); in antlr3BitsetClone()
198 …ANTLR3_MEMCPY(bitset->blist.bits, inSet->blist.bits, (ANTLR3_UINT64)(inSet->blist.length * sizeof(… in antlr3BitsetClone()
280 if (bitset->blist.length <= count) in antlr3BitsetLoad()
285 bitset->blist.bits[count] = *((inBits->bits)+count); in antlr3BitsetLoad()
384 if (word >= bitset->blist.length) in antlr3BitsetAdd()
389 bitset->blist.bits[word] |= bitMask(bit); in antlr3BitsetAdd()
402 if (bitset->blist.bits != NULL) in grow()
406 …ANTLR3_MEMCPY((void *)newBits, (const void *)bitset->blist.bits, (size_t)(bitset->blist.length * s… in grow()
410 ANTLR3_FREE(bitset->blist.bits); in grow()
415 bitset->blist.bits = newBits; in grow()
416 bitset->blist.length = newSize; in grow()
425 bl = (bitset->blist.length << 1); in growToInclude()
453 if (bitset->blist.length < bitset2->blist.length) in antlr3BitsetORInPlace()
455 growToInclude(bitset, (bitset2->blist.length * sizeof(ANTLR3_BITWORD))); in antlr3BitsetORInPlace()
460 if (bitset->blist.length < bitset2->blist.length) in antlr3BitsetORInPlace()
462 minimum = bitset->blist.length; in antlr3BitsetORInPlace()
466 minimum = bitset2->blist.length; in antlr3BitsetORInPlace()
471 bitset->blist.bits[i-1] |= bitset2->blist.bits[i-1]; in antlr3BitsetORInPlace()
494 for (i = bitset->blist.length - 1; i>= 0; i--) in antlr3BitsetSize()
496 if (bitset->blist.bits[i] != 0) in antlr3BitsetSize()
500 if ((bitset->blist.bits[i] & (((ANTLR3_BITWORD)1) << bit)) != 0) in antlr3BitsetSize()
523 if (bitset1->blist.length < bitset2->blist.length) in antlr3BitsetEquals()
525 minimum = bitset1->blist.length; in antlr3BitsetEquals()
529 minimum = bitset2->blist.length; in antlr3BitsetEquals()
536 if (bitset1->blist.bits[i] != bitset2->blist.bits[i]) in antlr3BitsetEquals()
545 if (bitset1->blist.length > (ANTLR3_UINT32)minimum) in antlr3BitsetEquals()
547 for (i = minimum ; (ANTLR3_UINT32)i < bitset1->blist.length; i++) in antlr3BitsetEquals()
549 if (bitset1->blist.bits[i] != 0) in antlr3BitsetEquals()
555 else if (bitset2->blist.length > (ANTLR3_UINT32)minimum) in antlr3BitsetEquals()
557 for (i = minimum; (ANTLR3_UINT32)i < bitset2->blist.length; i++) in antlr3BitsetEquals()
559 if (bitset2->blist.bits[i] != 0) in antlr3BitsetEquals()
576 if (wordNo >= bitset->blist.length) in antlr3BitsetMember()
581 if ((bitset->blist.bits[wordNo] & bitMask(bit)) == 0) in antlr3BitsetMember()
598 if (wordNo < bitset->blist.length) in antlr3BitsetRemove()
600 bitset->blist.bits[wordNo] &= ~(bitMask(bit)); in antlr3BitsetRemove()
608 for (i = bitset->blist.length -1; i>= 0; i--) in antlr3BitsetIsNil()
610 if (bitset->blist.bits[i] != 0) in antlr3BitsetIsNil()
634 return bitset->blist.length << ANTLR3_BITSET_LOG_BITS; in antlr3BitsetNumBits()