Lines Matching refs:getNumWords
78 U.pVal = getClearedMemory(getNumWords()); in initSlowCase()
81 for (unsigned i = 1; i < getNumWords(); ++i) in initSlowCase()
87 U.pVal = getMemory(getNumWords()); in initSlowCase()
88 memcpy(U.pVal, that.U.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
98 U.pVal = getClearedMemory(getNumWords()); in initFromArray()
100 unsigned words = std::min<unsigned>(bigVal.size(), getNumWords()); in initFromArray()
126 if (getNumWords() == getNumWords(NewBitWidth)) { in reallocate()
140 U.pVal = getMemory(getNumWords()); in reallocate()
155 memcpy(U.pVal, RHS.U.pVal, getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
167 unsigned NumWords = getNumWords(); in Profile()
177 tcIncrement(U.pVal, getNumWords()); in operator ++()
186 tcDecrement(U.pVal, getNumWords()); in operator --()
198 tcAdd(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator +=()
206 tcAddPart(U.pVal, RHS, getNumWords()); in operator +=()
218 tcSubtract(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator -=()
226 tcSubtractPart(U.pVal, RHS, getNumWords()); in operator -=()
235 APInt Result(getMemory(getNumWords()), getBitWidth()); in operator *()
237 tcMultiply(Result.U.pVal, U.pVal, RHS.U.pVal, getNumWords()); in operator *()
244 tcAnd(U.pVal, RHS.U.pVal, getNumWords()); in AndAssignSlowCase()
248 tcOr(U.pVal, RHS.U.pVal, getNumWords()); in OrAssignSlowCase()
252 tcXor(U.pVal, RHS.U.pVal, getNumWords()); in XorAssignSlowCase()
265 unsigned NumWords = getNumWords(); in operator *=()
272 return std::equal(U.pVal, U.pVal + getNumWords(), RHS.U.pVal); in EqualSlowCase()
280 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compare()
300 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compareSigned()
332 tcComplement(U.pVal, getNumWords()); in flipAllBitsSlowCase()
449 unsigned NumSrcWords = getNumWords(); in extractBits()
450 unsigned NumDstWords = Result.getNumWords(); in extractBits()
550 hash_combine_range(Arg.U.pVal, Arg.U.pVal + Arg.getNumWords())); in hash_value()
586 for (int i = getNumWords()-1; i >= 0; --i) { in countLeadingZerosSlowCase()
610 int i = getNumWords() - 1; in countLeadingOnesSlowCase()
628 for (; i < getNumWords() && U.pVal[i] == 0; ++i) in countTrailingZerosSlowCase()
630 if (i < getNumWords()) in countTrailingZerosSlowCase()
638 for (; i < getNumWords() && U.pVal[i] == WORDTYPE_MAX; ++i) in countTrailingOnesSlowCase()
640 if (i < getNumWords()) in countTrailingOnesSlowCase()
648 for (unsigned i = 0; i < getNumWords(); ++i) in countPopulationSlowCase()
654 for (unsigned i = 0, e = getNumWords(); i != e; ++i) in intersectsSlowCase()
662 for (unsigned i = 0, e = getNumWords(); i != e; ++i) in isSubsetOfSlowCase()
681 APInt Result(getNumWords() * APINT_BITS_PER_WORD, 0); in byteSwap()
682 for (unsigned I = 0, N = getNumWords(); I != N; ++I) in byteSwap()
865 APInt Result(getMemory(getNumWords(width)), width); in trunc()
912 APInt Result(getMemory(getNumWords(Width)), Width); in sext()
915 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in sext()
918 Result.U.pVal[getNumWords() - 1] = in sext()
919 SignExtend64(Result.U.pVal[getNumWords() - 1], in sext()
923 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext()
924 (Result.getNumWords() - getNumWords()) * APINT_WORD_SIZE); in sext()
936 APInt Result(getMemory(getNumWords(width)), width); in zext()
939 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in zext()
942 std::memset(Result.U.pVal + getNumWords(), 0, in zext()
943 (Result.getNumWords() - getNumWords()) * APINT_WORD_SIZE); in zext()
1002 unsigned WordsToMove = getNumWords() - WordShift; in ashrSlowCase()
1005 U.pVal[getNumWords() - 1] = SignExtend64( in ashrSlowCase()
1006 U.pVal[getNumWords() - 1], ((BitWidth - 1) % APINT_BITS_PER_WORD) + 1); in ashrSlowCase()
1040 tcShiftRight(U.pVal, getNumWords(), ShiftAmt); in lshrSlowCase()
1052 tcShiftLeft(U.pVal, getNumWords(), ShiftAmt); in shlSlowCase()
1610 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1612 unsigned rhsWords = getNumWords(rhsBits); in udiv()
1646 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1701 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1705 unsigned rhsWords = getNumWords(rhsBits); in urem()
1738 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1801 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1803 unsigned rhsWords = getNumWords(rhsBits); in udivrem()
1851 (getNumWords(BitWidth) - lhsWords) * APINT_WORD_SIZE); in udivrem()
1853 (getNumWords(BitWidth) - rhsWords) * APINT_WORD_SIZE); in udivrem()
1870 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1914 (getNumWords(BitWidth) - lhsWords) * APINT_WORD_SIZE); in udivrem()
2141 U.pVal = getClearedMemory(getNumWords()); in fromString()