Lines Matching refs:getNumWords
76 U.pVal = getClearedMemory(getNumWords()); in initSlowCase()
79 for (unsigned i = 1; i < getNumWords(); ++i) in initSlowCase()
85 U.pVal = getMemory(getNumWords()); in initSlowCase()
86 memcpy(U.pVal, that.U.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
95 U.pVal = getClearedMemory(getNumWords()); in initFromArray()
97 unsigned words = std::min<unsigned>(bigVal.size(), getNumWords()); in initFromArray()
121 if (getNumWords() == getNumWords(NewBitWidth)) { in reallocate()
135 U.pVal = getMemory(getNumWords()); in reallocate()
150 memcpy(U.pVal, RHS.U.pVal, getNumWords() * APINT_WORD_SIZE); in assignSlowCase()
162 unsigned NumWords = getNumWords(); in Profile()
172 tcIncrement(U.pVal, getNumWords()); in operator ++()
181 tcDecrement(U.pVal, getNumWords()); in operator --()
193 tcAdd(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator +=()
201 tcAddPart(U.pVal, RHS, getNumWords()); in operator +=()
213 tcSubtract(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator -=()
221 tcSubtractPart(U.pVal, RHS, getNumWords()); in operator -=()
230 APInt Result(getMemory(getNumWords()), getBitWidth()); in operator *()
231 tcMultiply(Result.U.pVal, U.pVal, RHS.U.pVal, getNumWords()); in operator *()
238 for (size_t i = 0, e = getNumWords(); i != e; ++i) in andAssignSlowCase()
244 for (size_t i = 0, e = getNumWords(); i != e; ++i) in orAssignSlowCase()
250 for (size_t i = 0, e = getNumWords(); i != e; ++i) in xorAssignSlowCase()
263 unsigned NumWords = getNumWords(); in operator *=()
270 return std::equal(U.pVal, U.pVal + getNumWords(), RHS.U.pVal); in equalSlowCase()
278 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compare()
298 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compareSigned()
336 tcComplement(U.pVal, getNumWords()); in flipAllBitsSlowCase()
466 unsigned NumSrcWords = getNumWords(); in extractBits()
467 unsigned NumDstWords = Result.getNumWords(); in extractBits()
584 hash_combine_range(Arg.U.pVal, Arg.U.pVal + Arg.getNumWords())); in hash_value()
624 for (int i = getNumWords()-1; i >= 0; --i) { in countLeadingZerosSlowCase()
648 int i = getNumWords() - 1; in countLeadingOnesSlowCase()
666 for (; i < getNumWords() && U.pVal[i] == 0; ++i) in countTrailingZerosSlowCase()
668 if (i < getNumWords()) in countTrailingZerosSlowCase()
676 for (; i < getNumWords() && U.pVal[i] == WORDTYPE_MAX; ++i) in countTrailingOnesSlowCase()
678 if (i < getNumWords()) in countTrailingOnesSlowCase()
686 for (unsigned i = 0; i < getNumWords(); ++i) in countPopulationSlowCase()
692 for (unsigned i = 0, e = getNumWords(); i != e; ++i) in intersectsSlowCase()
700 for (unsigned i = 0, e = getNumWords(); i != e; ++i) in isSubsetOfSlowCase()
719 APInt Result(getNumWords() * APINT_BITS_PER_WORD, 0); in byteSwap()
720 for (unsigned I = 0, N = getNumWords(); I != N; ++I) in byteSwap()
907 APInt Result(getMemory(getNumWords(width)), width); in trunc()
955 APInt Result(getMemory(getNumWords(Width)), Width); in sext()
958 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in sext()
961 Result.U.pVal[getNumWords() - 1] = in sext()
962 SignExtend64(Result.U.pVal[getNumWords() - 1], in sext()
966 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext()
967 (Result.getNumWords() - getNumWords()) * APINT_WORD_SIZE); in sext()
982 APInt Result(getMemory(getNumWords(width)), width); in zext()
985 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in zext()
988 std::memset(Result.U.pVal + getNumWords(), 0, in zext()
989 (Result.getNumWords() - getNumWords()) * APINT_WORD_SIZE); in zext()
1030 unsigned WordsToMove = getNumWords() - WordShift; in ashrSlowCase()
1033 U.pVal[getNumWords() - 1] = SignExtend64( in ashrSlowCase()
1034 U.pVal[getNumWords() - 1], ((BitWidth - 1) % APINT_BITS_PER_WORD) + 1); in ashrSlowCase()
1068 tcShiftRight(U.pVal, getNumWords(), ShiftAmt); in lshrSlowCase()
1080 tcShiftLeft(U.pVal, getNumWords(), ShiftAmt); in shlSlowCase()
1581 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1583 unsigned rhsWords = getNumWords(rhsBits); in udiv()
1617 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1672 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1676 unsigned rhsWords = getNumWords(rhsBits); in urem()
1709 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1772 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1774 unsigned rhsWords = getNumWords(rhsBits); in udivrem()
1822 (getNumWords(BitWidth) - lhsWords) * APINT_WORD_SIZE); in udivrem()
1824 (getNumWords(BitWidth) - rhsWords) * APINT_WORD_SIZE); in udivrem()
1841 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1885 (getNumWords(BitWidth) - lhsWords) * APINT_WORD_SIZE); in udivrem()
2113 U.pVal = getClearedMemory(getNumWords()); in fromString()