Searched refs:APINT_BITS_PER_WORD (Results 1 – 10 of 10) sorted by relevance
313 uint64_t hiMask = WORD_MAX >> (APINT_BITS_PER_WORD - hiShiftAmt); in setBitsSlowCase()357 uint64_t mask = WORD_MAX >> (APINT_BITS_PER_WORD - subBitWidth); in insertBits()369 uint64_t mask = WORD_MAX >> (APINT_BITS_PER_WORD - subBitWidth); in insertBits()378 unsigned numWholeSubWords = subBitWidth / APINT_BITS_PER_WORD; in insertBits()383 unsigned remainingBits = subBitWidth % APINT_BITS_PER_WORD; in insertBits()385 uint64_t mask = WORD_MAX >> (APINT_BITS_PER_WORD - remainingBits); in insertBits()434 DestPtr[word] = (w0 >> loBit) | (w1 << (APINT_BITS_PER_WORD - loBit)); in extractBits()536 Count += APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()543 unsigned Mod = BitWidth % APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()544 Count -= Mod > 0 ? APINT_BITS_PER_WORD - Mod : 0; in countLeadingZerosSlowCase()[all …]
512 if (n1 <= APINT_BITS_PER_WORD) in EqualSlowCase()524 if (n <= APINT_BITS_PER_WORD) in EqualSlowCase()548 if (n1 <= APINT_BITS_PER_WORD && n2 <= APINT_BITS_PER_WORD) in ult()781 unsigned BitsInMSW = BitWidth % APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()786 BitsInMSW = APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()792 return CountLeadingZeros_64(MSW) - (APINT_BITS_PER_WORD - BitsInMSW); in countLeadingZerosSlowCase()797 Count += APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()819 return countLeadingOnes_64(VAL, APINT_BITS_PER_WORD - BitWidth); in countLeadingOnes()821 unsigned highWordBits = BitWidth % APINT_BITS_PER_WORD; in countLeadingOnes()824 highWordBits = APINT_BITS_PER_WORD; in countLeadingOnes()[all …]
517 if (n <= APINT_BITS_PER_WORD) in EqualSlowCase()541 if (n1 <= APINT_BITS_PER_WORD && n2 <= APINT_BITS_PER_WORD) in ult()686 Count += APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()693 unsigned Mod = BitWidth % APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()694 Count -= Mod > 0 ? APINT_BITS_PER_WORD - Mod : 0; in countLeadingZerosSlowCase()700 return llvm::countLeadingOnes(VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes()702 unsigned highWordBits = BitWidth % APINT_BITS_PER_WORD; in countLeadingOnes()705 highWordBits = APINT_BITS_PER_WORD; in countLeadingOnes()708 shift = APINT_BITS_PER_WORD - highWordBits; in countLeadingOnes()715 Count += APINT_BITS_PER_WORD; in countLeadingOnes()[all …]
495 if (n <= APINT_BITS_PER_WORD) in EqualSlowCase()519 if (n1 <= APINT_BITS_PER_WORD && n2 <= APINT_BITS_PER_WORD) in ult()664 Count += APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()671 unsigned Mod = BitWidth % APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()672 Count -= Mod > 0 ? APINT_BITS_PER_WORD - Mod : 0; in countLeadingZerosSlowCase()678 return llvm::countLeadingOnes(VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes()680 unsigned highWordBits = BitWidth % APINT_BITS_PER_WORD; in countLeadingOnes()683 highWordBits = APINT_BITS_PER_WORD; in countLeadingOnes()686 shift = APINT_BITS_PER_WORD - highWordBits; in countLeadingOnes()693 Count += APINT_BITS_PER_WORD; in countLeadingOnes()[all …]
86 APINT_BITS_PER_WORD = enumerator103 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } in isSingleWord()109 return bitPosition / APINT_BITS_PER_WORD; in whichWord()117 return bitPosition % APINT_BITS_PER_WORD; in whichBit()138 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits()146 uint64_t mask = ~uint64_t(0ULL) >> (APINT_BITS_PER_WORD - wordBits); in clearUnusedBits()340 return VAL == ~integerPart(0) >> (APINT_BITS_PER_WORD - BitWidth); in isAllOnesValue()521 if (numBits <= APINT_BITS_PER_WORD) in getHighBitsSet()537 if (loBitsSet == APINT_BITS_PER_WORD) in getLowBitsSet()540 if (loBitsSet <= APINT_BITS_PER_WORD) in getLowBitsSet()[all …]
90 APINT_BITS_PER_WORD = enumerator107 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } in isSingleWord()113 return bitPosition / APINT_BITS_PER_WORD; in whichWord()121 return bitPosition % APINT_BITS_PER_WORD; in whichBit()142 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits()150 uint64_t mask = ~uint64_t(0ULL) >> (APINT_BITS_PER_WORD - wordBits); in clearUnusedBits()344 return VAL == ~integerPart(0) >> (APINT_BITS_PER_WORD - BitWidth); in isAllOnesValue()525 if (numBits <= APINT_BITS_PER_WORD) in getHighBitsSet()541 if (loBitsSet == APINT_BITS_PER_WORD) in getLowBitsSet()544 if (loBitsSet <= APINT_BITS_PER_WORD) in getLowBitsSet()[all …]
86 APINT_BITS_PER_WORD = static_cast<unsigned int>(sizeof(uint64_t)) * enumerator100 return BitWidth <= APINT_BITS_PER_WORD; in isSingleWord()106 return bitPosition / APINT_BITS_PER_WORD; in whichWord()113 return bitPosition % APINT_BITS_PER_WORD; in whichBit()132 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits()140 uint64_t mask = ~uint64_t(0ULL) >> (APINT_BITS_PER_WORD - wordBits); in clearUnusedBits()483 if (numBits <= APINT_BITS_PER_WORD) in getHighBitsSet()497 if (loBitsSet == APINT_BITS_PER_WORD) in getLowBitsSet()500 if (numBits < APINT_BITS_PER_WORD) in getLowBitsSet()1128 return (BitWidth + APINT_BITS_PER_WORD - 1) / APINT_BITS_PER_WORD; in getNumWords()[all …]
78 APINT_BITS_PER_WORD = APINT_WORD_SIZE * CHAR_BIT enumerator114 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } in isSingleWord()120 return bitPosition / APINT_BITS_PER_WORD; in whichWord()128 return bitPosition % APINT_BITS_PER_WORD; in whichBit()149 unsigned WordBits = ((BitWidth-1) % APINT_BITS_PER_WORD) + 1; in clearUnusedBits()152 uint64_t mask = WORD_MAX >> (APINT_BITS_PER_WORD - WordBits); in clearUnusedBits()397 return U.VAL == WORD_MAX >> (APINT_BITS_PER_WORD - BitWidth); in isAllOnesValue()498 return U.VAL == (WORD_MAX >> (APINT_BITS_PER_WORD - numBits)); in isMask()958 U.VAL = SExtVAL >> (APINT_BITS_PER_WORD - 1); // Fill with sign bit. in ashrInPlace()1417 if (loBit < APINT_BITS_PER_WORD && hiBit <= APINT_BITS_PER_WORD) { in setBits()[all …]
144 static const unsigned integerPartWidth = APInt::APINT_BITS_PER_WORD;
574 APInt A2(APInt::APINT_BITS_PER_WORD*4, E2); in TEST()1470 APInt::WordType singleWord = ~APInt::WordType(0) << (APInt::APINT_BITS_PER_WORD - 1); in TEST()1547 APInt A2(APInt::APINT_BITS_PER_WORD*4, E2); in TEST()1549 for (unsigned j = 0; j < APInt::APINT_BITS_PER_WORD; ++j) { in TEST()1551 A2[i*APInt::APINT_BITS_PER_WORD + j]); in TEST()1586 APInt A4(APInt::APINT_BITS_PER_WORD*4, I4); in TEST()1591 APInt A5(APInt::APINT_BITS_PER_WORD*4, I5); in TEST()1596 APInt A6(APInt::APINT_BITS_PER_WORD*4, I6); in TEST()