Lines Matching refs:getNumWords
79 pVal = getClearedMemory(getNumWords()); in initSlowCase()
82 for (unsigned i = 1; i < getNumWords(); ++i) in initSlowCase()
87 pVal = getMemory(getNumWords()); in initSlowCase()
88 memcpy(pVal, that.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
98 pVal = getClearedMemory(getNumWords()); in initFromArray()
100 unsigned words = std::min<unsigned>(bigVal.size(), getNumWords()); in initFromArray()
132 memcpy(pVal, RHS.pVal, getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
140 pVal = getMemory(RHS.getNumWords()); in AssignSlowCase()
141 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
142 } else if (getNumWords() == RHS.getNumWords()) in AssignSlowCase()
143 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
149 pVal = getMemory(RHS.getNumWords()); in AssignSlowCase()
150 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
161 memset(pVal+1, 0, (getNumWords() - 1) * APINT_WORD_SIZE); in operator =()
175 unsigned NumWords = getNumWords(); in Profile()
202 add_1(pVal, pVal, getNumWords(), 1); in operator ++()
231 sub_1(pVal, getNumWords(), 1); in operator --()
258 add(pVal, pVal, RHS.pVal, getNumWords()); in operator +=()
285 sub(pVal, pVal, RHS.pVal, getNumWords()); in operator -=()
390 unsigned wordsToCopy = destWords >= getNumWords() ? getNumWords() : destWords; in operator *=()
405 unsigned numWords = getNumWords(); in operator &=()
417 unsigned numWords = getNumWords(); in operator |=()
430 unsigned numWords = getNumWords(); in operator ^=()
437 unsigned numWords = getNumWords(); in AndSlowCase()
445 unsigned numWords = getNumWords(); in OrSlowCase()
453 unsigned numWords = getNumWords(); in XorSlowCase()
478 add(Result.pVal, this->pVal, RHS.pVal, getNumWords()); in operator +()
487 add_1(Result.pVal, Result.pVal, getNumWords(), RHS); in operator +()
497 sub(Result.pVal, this->pVal, RHS.pVal, getNumWords()); in operator -()
506 sub_1(Result.pVal, getNumWords(), RHS); in operator -()
512 return std::equal(pVal, pVal + getNumWords(), RHS.pVal); in EqualSlowCase()
659 return hash_combine_range(Arg.pVal, Arg.pVal + Arg.getNumWords()); in hash_value()
683 for (int i = getNumWords()-1; i >= 0; --i) { in countLeadingZerosSlowCase()
710 int i = getNumWords() - 1; in countLeadingOnes()
730 for (; i < getNumWords() && pVal[i] == 0; ++i) in countTrailingZeros()
732 if (i < getNumWords()) in countTrailingZeros()
740 for (; i < getNumWords() && pVal[i] == -1ULL; ++i) in countTrailingOnesSlowCase()
742 if (i < getNumWords()) in countTrailingOnesSlowCase()
749 for (unsigned i = 0; i < getNumWords(); ++i) in countPopulationSlowCase()
782 APInt Result(getNumWords() * APINT_BITS_PER_WORD, 0); in byteSwap()
783 for (unsigned I = 0, N = getNumWords(); I != N; ++I) in byteSwap()
786 lshrNear(Result.pVal, Result.pVal, getNumWords(), in byteSwap()
945 APInt Result(getMemory(getNumWords(width)), width); in trunc()
970 APInt Result(getMemory(getNumWords(width)), width); in sext()
1008 APInt Result(getMemory(getNumWords(width)), width); in zext()
1012 for (i = 0; i != getNumWords(); i++) in zext()
1016 memset(&Result.pVal[i], 0, (Result.getNumWords() - i) * APINT_WORD_SIZE); in zext()
1085 uint64_t * val = new uint64_t[getNumWords()]; in ashr()
1090 unsigned breakWord = getNumWords() - 1 - offset; // last word affected in ashr()
1133 for (unsigned i = breakWord+1; i < getNumWords(); ++i) in ashr()
1169 uint64_t * val = new uint64_t[getNumWords()]; in lshr()
1173 lshrNear(val, pVal, getNumWords(), shiftAmt); in lshr()
1185 for (unsigned i = 0; i < getNumWords() - offset; ++i) in lshr()
1187 for (unsigned i = getNumWords()-offset; i < getNumWords(); i++) in lshr()
1195 unsigned breakWord = getNumWords() - offset -1; in lshr()
1203 for (unsigned i = breakWord+1; i < getNumWords(); ++i) in lshr()
1231 uint64_t * val = new uint64_t[getNumWords()]; in shlSlowCase()
1236 for (unsigned i = 0; i < getNumWords(); i++) { in shlSlowCase()
1253 for (unsigned i = offset; i < getNumWords(); i++) in shlSlowCase()
1261 unsigned i = getNumWords() - 1; in shlSlowCase()
1706 uint64_t tmp = (LHS.getNumWords() == 1 ? LHS.VAL : LHS.pVal[i]); in divide()
1715 uint64_t tmp = (RHS.getNumWords() == 1 ? RHS.VAL : RHS.pVal[i]); in divide()
1780 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide()
1813 Remainder->pVal = getClearedMemory(Remainder->getNumWords()); in divide()
2110 pVal = getClearedMemory(getNumWords()); in fromString()
2253 divide(Tmp, Tmp.getNumWords(), divisor, divisor.getNumWords(), &tmp2, in toString()