Lines Matching refs:getNumWords
78 pVal = getClearedMemory(getNumWords()); in initSlowCase()
81 for (unsigned i = 1; i < getNumWords(); ++i) in initSlowCase()
86 pVal = getMemory(getNumWords()); in initSlowCase()
87 memcpy(pVal, that.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
97 pVal = getClearedMemory(getNumWords()); in initFromArray()
99 unsigned words = std::min<unsigned>(bigVal.size(), getNumWords()); in initFromArray()
131 memcpy(pVal, RHS.pVal, getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
139 pVal = getMemory(RHS.getNumWords()); in AssignSlowCase()
140 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
141 } else if (getNumWords() == RHS.getNumWords()) in AssignSlowCase()
142 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
148 pVal = getMemory(RHS.getNumWords()); in AssignSlowCase()
149 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
160 memset(pVal+1, 0, (getNumWords() - 1) * APINT_WORD_SIZE); in operator =()
174 unsigned NumWords = getNumWords(); in Profile()
201 add_1(pVal, pVal, getNumWords(), 1); in operator ++()
230 sub_1(pVal, getNumWords(), 1); in operator --()
257 add(pVal, pVal, RHS.pVal, getNumWords()); in operator +=()
284 sub(pVal, pVal, RHS.pVal, getNumWords()); in operator -=()
389 unsigned wordsToCopy = destWords >= getNumWords() ? getNumWords() : destWords; in operator *=()
404 unsigned numWords = getNumWords(); in operator &=()
416 unsigned numWords = getNumWords(); in operator |=()
429 unsigned numWords = getNumWords(); in operator ^=()
436 unsigned numWords = getNumWords(); in AndSlowCase()
444 unsigned numWords = getNumWords(); in OrSlowCase()
452 unsigned numWords = getNumWords(); in XorSlowCase()
477 add(Result.pVal, this->pVal, RHS.pVal, getNumWords()); in operator +()
487 sub(Result.pVal, this->pVal, RHS.pVal, getNumWords()); in operator -()
672 return hash_combine_range(Arg.pVal, Arg.pVal + Arg.getNumWords()); in hash_value()
705 unsigned i = getNumWords(); in countLeadingZerosSlowCase()
734 int i = getNumWords() - 1; in countLeadingOnes()
754 for (; i < getNumWords() && pVal[i] == 0; ++i) in countTrailingZeros()
756 if (i < getNumWords()) in countTrailingZeros()
764 for (; i < getNumWords() && pVal[i] == -1ULL; ++i) in countTrailingOnesSlowCase()
766 if (i < getNumWords()) in countTrailingOnesSlowCase()
773 for (unsigned i = 0; i < getNumWords(); ++i) in countPopulationSlowCase()
806 APInt Result(getNumWords() * APINT_BITS_PER_WORD, 0); in byteSwap()
807 for (unsigned I = 0, N = getNumWords(); I != N; ++I) in byteSwap()
810 lshrNear(Result.pVal, Result.pVal, getNumWords(), in byteSwap()
939 APInt Result(getMemory(getNumWords(width)), width); in trunc()
964 APInt Result(getMemory(getNumWords(width)), width); in sext()
1002 APInt Result(getMemory(getNumWords(width)), width); in zext()
1006 for (i = 0; i != getNumWords(); i++) in zext()
1010 memset(&Result.pVal[i], 0, (Result.getNumWords() - i) * APINT_WORD_SIZE); in zext()
1079 uint64_t * val = new uint64_t[getNumWords()]; in ashr()
1084 unsigned breakWord = getNumWords() - 1 - offset; // last word affected in ashr()
1127 for (unsigned i = breakWord+1; i < getNumWords(); ++i) in ashr()
1163 uint64_t * val = new uint64_t[getNumWords()]; in lshr()
1167 lshrNear(val, pVal, getNumWords(), shiftAmt); in lshr()
1179 for (unsigned i = 0; i < getNumWords() - offset; ++i) in lshr()
1181 for (unsigned i = getNumWords()-offset; i < getNumWords(); i++) in lshr()
1189 unsigned breakWord = getNumWords() - offset -1; in lshr()
1197 for (unsigned i = breakWord+1; i < getNumWords(); ++i) in lshr()
1225 uint64_t * val = new uint64_t[getNumWords()]; in shlSlowCase()
1230 for (unsigned i = 0; i < getNumWords(); i++) { in shlSlowCase()
1247 for (unsigned i = offset; i < getNumWords(); i++) in shlSlowCase()
1255 unsigned i = getNumWords() - 1; in shlSlowCase()
1702 uint64_t tmp = (LHS.getNumWords() == 1 ? LHS.VAL : LHS.pVal[i]); in divide()
1711 uint64_t tmp = (RHS.getNumWords() == 1 ? RHS.VAL : RHS.pVal[i]); in divide()
1776 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide()
1809 Remainder->pVal = getClearedMemory(Remainder->getNumWords()); in divide()
2106 pVal = getClearedMemory(getNumWords()); in fromString()
2249 divide(Tmp, Tmp.getNumWords(), divisor, divisor.getNumWords(), &tmp2, in toString()