Lines Matching refs:getNumWords
79 U.pVal = getClearedMemory(getNumWords()); in initSlowCase()
82 for (unsigned i = 1; i < getNumWords(); ++i) in initSlowCase()
88 U.pVal = getMemory(getNumWords()); in initSlowCase()
89 memcpy(U.pVal, that.U.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
99 U.pVal = getClearedMemory(getNumWords()); in initFromArray()
101 unsigned words = std::min<unsigned>(bigVal.size(), getNumWords()); in initFromArray()
127 if (getNumWords() == getNumWords(NewBitWidth)) { in reallocate()
141 U.pVal = getMemory(getNumWords()); in reallocate()
156 memcpy(U.pVal, RHS.U.pVal, getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
168 unsigned NumWords = getNumWords(); in Profile()
178 tcIncrement(U.pVal, getNumWords()); in operator ++()
187 tcDecrement(U.pVal, getNumWords()); in operator --()
199 tcAdd(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator +=()
207 tcAddPart(U.pVal, RHS, getNumWords()); in operator +=()
219 tcSubtract(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator -=()
227 tcSubtractPart(U.pVal, RHS, getNumWords()); in operator -=()
236 APInt Result(getMemory(getNumWords()), getBitWidth()); in operator *()
238 tcMultiply(Result.U.pVal, U.pVal, RHS.U.pVal, getNumWords()); in operator *()
245 tcAnd(U.pVal, RHS.U.pVal, getNumWords()); in AndAssignSlowCase()
249 tcOr(U.pVal, RHS.U.pVal, getNumWords()); in OrAssignSlowCase()
253 tcXor(U.pVal, RHS.U.pVal, getNumWords()); in XorAssignSlowCase()
266 unsigned NumWords = getNumWords(); in operator *=()
273 return std::equal(U.pVal, U.pVal + getNumWords(), RHS.U.pVal); in EqualSlowCase()
281 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compare()
301 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compareSigned()
333 tcComplement(U.pVal, getNumWords()); in flipAllBitsSlowCase()
428 unsigned NumSrcWords = getNumWords(); in extractBits()
429 unsigned NumDstWords = Result.getNumWords(); in extractBits()
499 return hash_combine_range(Arg.U.pVal, Arg.U.pVal + Arg.getNumWords()); in hash_value()
535 for (int i = getNumWords()-1; i >= 0; --i) { in countLeadingZerosSlowCase()
559 int i = getNumWords() - 1; in countLeadingOnesSlowCase()
577 for (; i < getNumWords() && U.pVal[i] == 0; ++i) in countTrailingZerosSlowCase()
579 if (i < getNumWords()) in countTrailingZerosSlowCase()
587 for (; i < getNumWords() && U.pVal[i] == WORDTYPE_MAX; ++i) in countTrailingOnesSlowCase()
589 if (i < getNumWords()) in countTrailingOnesSlowCase()
597 for (unsigned i = 0; i < getNumWords(); ++i) in countPopulationSlowCase()
603 for (unsigned i = 0, e = getNumWords(); i != e; ++i) in intersectsSlowCase()
611 for (unsigned i = 0, e = getNumWords(); i != e; ++i) in isSubsetOfSlowCase()
634 APInt Result(getNumWords() * APINT_BITS_PER_WORD, 0); in byteSwap()
635 for (unsigned I = 0, N = getNumWords(); I != N; ++I) in byteSwap()
818 APInt Result(getMemory(getNumWords(width)), width); in trunc()
840 APInt Result(getMemory(getNumWords(Width)), Width); in sext()
843 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in sext()
846 Result.U.pVal[getNumWords() - 1] = in sext()
847 SignExtend64(Result.U.pVal[getNumWords() - 1], in sext()
851 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext()
852 (Result.getNumWords() - getNumWords()) * APINT_WORD_SIZE); in sext()
864 APInt Result(getMemory(getNumWords(width)), width); in zext()
867 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in zext()
870 std::memset(Result.U.pVal + getNumWords(), 0, in zext()
871 (Result.getNumWords() - getNumWords()) * APINT_WORD_SIZE); in zext()
924 unsigned WordsToMove = getNumWords() - WordShift; in ashrSlowCase()
927 U.pVal[getNumWords() - 1] = SignExtend64( in ashrSlowCase()
928 U.pVal[getNumWords() - 1], ((BitWidth - 1) % APINT_BITS_PER_WORD) + 1); in ashrSlowCase()
962 tcShiftRight(U.pVal, getNumWords(), ShiftAmt); in lshrSlowCase()
974 tcShiftLeft(U.pVal, getNumWords(), ShiftAmt); in shlSlowCase()
1530 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1532 unsigned rhsWords = getNumWords(rhsBits); in udiv()
1566 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1621 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1625 unsigned rhsWords = getNumWords(rhsBits); in urem()
1658 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1721 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1723 unsigned rhsWords = getNumWords(rhsBits); in udivrem()
1771 (getNumWords(BitWidth) - lhsWords) * APINT_WORD_SIZE); in udivrem()
1773 (getNumWords(BitWidth) - rhsWords) * APINT_WORD_SIZE); in udivrem()
1790 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1834 (getNumWords(BitWidth) - lhsWords) * APINT_WORD_SIZE); in udivrem()
2014 U.pVal = getClearedMemory(getNumWords()); in fromString()