Searched refs:APINT_BITS_PER_WORD (Results 1 – 12 of 12) sorted by relevance
314 uint64_t hiMask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - hiShiftAmt); in setBitsSlowCase()357 uint64_t mask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - subBitWidth); in insertBits()369 uint64_t mask = WORDTYPE_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 = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - remainingBits); in insertBits()457 DestPtr[word] = (w0 >> loBit) | (w1 << (APINT_BITS_PER_WORD - loBit)); in extractBits()589 Count += APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()596 unsigned Mod = BitWidth % APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()597 Count -= Mod > 0 ? APINT_BITS_PER_WORD - Mod : 0; in countLeadingZerosSlowCase()[all …]
314 uint64_t hiMask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - hiShiftAmt); in setBitsSlowCase()358 uint64_t mask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - subBitWidth); in insertBits()370 uint64_t mask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - subBitWidth); in insertBits()379 unsigned numWholeSubWords = subBitWidth / APINT_BITS_PER_WORD; in insertBits()384 unsigned remainingBits = subBitWidth % APINT_BITS_PER_WORD; in insertBits()386 uint64_t mask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - remainingBits); in insertBits()462 DestPtr[word] = (w0 >> loBit) | (w1 << (APINT_BITS_PER_WORD - loBit)); in extractBits()592 Count += APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()599 unsigned Mod = BitWidth % APINT_BITS_PER_WORD; in countLeadingZerosSlowCase()600 Count -= Mod > 0 ? APINT_BITS_PER_WORD - Mod : 0; in countLeadingZerosSlowCase()[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 …]
79 APINT_BITS_PER_WORD = APINT_WORD_SIZE * CHAR_BIT enumerator115 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; }121 return bitPosition / APINT_BITS_PER_WORD;129 return bitPosition % APINT_BITS_PER_WORD;150 unsigned WordBits = ((BitWidth-1) % APINT_BITS_PER_WORD) + 1;153 uint64_t mask = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - WordBits);403 return U.VAL == WORDTYPE_MAX >> (APINT_BITS_PER_WORD - BitWidth);504 return U.VAL == (WORDTYPE_MAX >> (APINT_BITS_PER_WORD - numBits));975 U.VAL = SExtVAL >> (APINT_BITS_PER_WORD - 1); // Fill with sign bit.1487 if (loBit < APINT_BITS_PER_WORD && hiBit <= APINT_BITS_PER_WORD) {[all …]
145 static constexpr unsigned integerPartWidth = APInt::APINT_BITS_PER_WORD;
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 = WORDTYPE_MAX >> (APINT_BITS_PER_WORD - WordBits); in clearUnusedBits()402 return U.VAL == WORDTYPE_MAX >> (APINT_BITS_PER_WORD - BitWidth); in isAllOnesValue()503 return U.VAL == (WORDTYPE_MAX >> (APINT_BITS_PER_WORD - numBits)); in isMask()975 U.VAL = SExtVAL >> (APINT_BITS_PER_WORD - 1); // Fill with sign bit. in ashrInPlace()1472 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()1562 APInt::WordType singleWord = ~APInt::WordType(0) << (APInt::APINT_BITS_PER_WORD - 1); in TEST()1639 APInt A2(APInt::APINT_BITS_PER_WORD*4, E2); in TEST()1641 for (unsigned j = 0; j < APInt::APINT_BITS_PER_WORD; ++j) { in TEST()1643 A2[i*APInt::APINT_BITS_PER_WORD + j]); in TEST()1678 APInt A4(APInt::APINT_BITS_PER_WORD*4, I4); in TEST()1683 APInt A5(APInt::APINT_BITS_PER_WORD*4, I5); in TEST()1688 APInt A6(APInt::APINT_BITS_PER_WORD*4, I6); in TEST()
560 valueLE.begin(), APInt::APINT_BITS_PER_WORD, 1); in copyAPIntToArrayForBEmachine()602 APInt::APINT_BITS_PER_WORD, 1); in copyArrayToAPIntForBEmachine()