Lines Matching refs:getNumWords
77 pVal = getClearedMemory(getNumWords()); in initSlowCase()
80 for (unsigned i = 1; i < getNumWords(); ++i) in initSlowCase()
85 pVal = getMemory(getNumWords()); in initSlowCase()
86 memcpy(pVal, that.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
96 pVal = getClearedMemory(getNumWords()); in initFromArray()
98 unsigned words = std::min<unsigned>(bigVal.size(), getNumWords()); in initFromArray()
130 memcpy(pVal, RHS.pVal, getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
138 pVal = getMemory(RHS.getNumWords()); in AssignSlowCase()
139 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
140 } else if (getNumWords() == RHS.getNumWords()) in AssignSlowCase()
141 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
147 pVal = getMemory(RHS.getNumWords()); in AssignSlowCase()
148 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
159 memset(pVal+1, 0, (getNumWords() - 1) * APINT_WORD_SIZE); in operator =()
173 unsigned NumWords = getNumWords(); in Profile()
200 add_1(pVal, pVal, getNumWords(), 1); in operator ++()
229 sub_1(pVal, getNumWords(), 1); in operator --()
256 add(pVal, pVal, RHS.pVal, getNumWords()); in operator +=()
283 sub(pVal, pVal, RHS.pVal, getNumWords()); in operator -=()
388 unsigned wordsToCopy = destWords >= getNumWords() ? getNumWords() : destWords; in operator *=()
403 unsigned numWords = getNumWords(); in operator &=()
415 unsigned numWords = getNumWords(); in operator |=()
428 unsigned numWords = getNumWords(); in operator ^=()
435 unsigned numWords = getNumWords(); in AndSlowCase()
443 unsigned numWords = getNumWords(); in OrSlowCase()
451 unsigned numWords = getNumWords(); in XorSlowCase()
474 add(Result.pVal, this->pVal, RHS.pVal, getNumWords()); in operator +()
483 sub(Result.pVal, this->pVal, RHS.pVal, getNumWords()); in operator -()
667 return hash_combine_range(Arg.pVal, Arg.pVal + Arg.getNumWords()); in hash_value()
692 unsigned i = getNumWords(); in countLeadingZerosSlowCase()
721 int i = getNumWords() - 1; in countLeadingOnes()
741 for (; i < getNumWords() && pVal[i] == 0; ++i) in countTrailingZeros()
743 if (i < getNumWords()) in countTrailingZeros()
751 for (; i < getNumWords() && pVal[i] == -1ULL; ++i) in countTrailingOnesSlowCase()
753 if (i < getNumWords()) in countTrailingOnesSlowCase()
760 for (unsigned i = 0; i < getNumWords(); ++i) in countPopulationSlowCase()
793 APInt Result(getNumWords() * APINT_BITS_PER_WORD, 0); in byteSwap()
794 for (unsigned I = 0, N = getNumWords(); I != N; ++I) in byteSwap()
797 lshrNear(Result.pVal, Result.pVal, getNumWords(), in byteSwap()
926 APInt Result(getMemory(getNumWords(width)), width); in trunc()
951 APInt Result(getMemory(getNumWords(width)), width); in sext()
989 APInt Result(getMemory(getNumWords(width)), width); in zext()
993 for (i = 0; i != getNumWords(); i++) in zext()
997 memset(&Result.pVal[i], 0, (Result.getNumWords() - i) * APINT_WORD_SIZE); in zext()
1066 uint64_t * val = new uint64_t[getNumWords()]; in ashr()
1071 unsigned breakWord = getNumWords() - 1 - offset; // last word affected in ashr()
1114 for (unsigned i = breakWord+1; i < getNumWords(); ++i) in ashr()
1148 uint64_t * val = new uint64_t[getNumWords()]; in lshr()
1152 lshrNear(val, pVal, getNumWords(), shiftAmt); in lshr()
1162 for (unsigned i = 0; i < getNumWords() - offset; ++i) in lshr()
1164 for (unsigned i = getNumWords()-offset; i < getNumWords(); i++) in lshr()
1170 unsigned breakWord = getNumWords() - offset -1; in lshr()
1178 for (unsigned i = breakWord+1; i < getNumWords(); ++i) in lshr()
1204 uint64_t * val = new uint64_t[getNumWords()]; in shlSlowCase()
1209 for (unsigned i = 0; i < getNumWords(); i++) { in shlSlowCase()
1224 for (unsigned i = offset; i < getNumWords(); i++) in shlSlowCase()
1230 unsigned i = getNumWords() - 1; in shlSlowCase()
1707 uint64_t tmp = (LHS.getNumWords() == 1 ? LHS.VAL : LHS.pVal[i]); in divide()
1716 uint64_t tmp = (RHS.getNumWords() == 1 ? RHS.VAL : RHS.pVal[i]); in divide()
1781 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide()
1812 Remainder->pVal = getClearedMemory(Remainder->getNumWords()); in divide()
2047 pVal = getClearedMemory(getNumWords()); in fromString()
2190 divide(Tmp, Tmp.getNumWords(), divisor, divisor.getNumWords(), &tmp2, in toString()