Lines Matching refs:getNumWords

77   U.pVal = getClearedMemory(getNumWords());  in initSlowCase()
80 for (unsigned i = 1; i < getNumWords(); ++i) in initSlowCase()
86 U.pVal = getMemory(getNumWords()); in initSlowCase()
87 memcpy(U.pVal, that.U.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
96 U.pVal = getClearedMemory(getNumWords()); in initFromArray()
98 unsigned words = std::min<unsigned>(bigVal.size(), getNumWords()); in initFromArray()
122 if (getNumWords() == getNumWords(NewBitWidth)) { in reallocate()
136 U.pVal = getMemory(getNumWords()); in reallocate()
151 memcpy(U.pVal, RHS.U.pVal, getNumWords() * APINT_WORD_SIZE); in assignSlowCase()
163 unsigned NumWords = getNumWords(); in Profile()
181 tcIncrement(U.pVal, getNumWords()); in operator ++()
190 tcDecrement(U.pVal, getNumWords()); in operator --()
202 tcAdd(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator +=()
210 tcAddPart(U.pVal, RHS, getNumWords()); in operator +=()
222 tcSubtract(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator -=()
230 tcSubtractPart(U.pVal, RHS, getNumWords()); in operator -=()
239 APInt Result(getMemory(getNumWords()), getBitWidth()); in operator *()
240 tcMultiply(Result.U.pVal, U.pVal, RHS.U.pVal, getNumWords()); in operator *()
247 for (size_t i = 0, e = getNumWords(); i != e; ++i) in andAssignSlowCase()
253 for (size_t i = 0, e = getNumWords(); i != e; ++i) in orAssignSlowCase()
259 for (size_t i = 0, e = getNumWords(); i != e; ++i) in xorAssignSlowCase()
272 unsigned NumWords = getNumWords(); in operator *=()
279 return std::equal(U.pVal, U.pVal + getNumWords(), RHS.U.pVal); in equalSlowCase()
287 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compare()
307 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compareSigned()
345 tcComplement(U.pVal, getNumWords()); in flipAllBitsSlowCase()
475 unsigned NumSrcWords = getNumWords(); in extractBits()
476 unsigned NumDstWords = Result.getNumWords(); in extractBits()
592 hash_combine_range(Arg.U.pVal, Arg.U.pVal + Arg.getNumWords())); in hash_value()
632 for (int i = getNumWords()-1; i >= 0; --i) { in countLeadingZerosSlowCase()
656 int i = getNumWords() - 1; in countLeadingOnesSlowCase()
674 for (; i < getNumWords() && U.pVal[i] == 0; ++i) in countTrailingZerosSlowCase()
676 if (i < getNumWords()) in countTrailingZerosSlowCase()
684 for (; i < getNumWords() && U.pVal[i] == WORDTYPE_MAX; ++i) in countTrailingOnesSlowCase()
686 if (i < getNumWords()) in countTrailingOnesSlowCase()
694 for (unsigned i = 0; i < getNumWords(); ++i) in countPopulationSlowCase()
700 for (unsigned i = 0, e = getNumWords(); i != e; ++i) in intersectsSlowCase()
708 for (unsigned i = 0, e = getNumWords(); i != e; ++i) in isSubsetOfSlowCase()
727 APInt Result(getNumWords() * APINT_BITS_PER_WORD, 0); in byteSwap()
728 for (unsigned I = 0, N = getNumWords(); I != N; ++I) in byteSwap()
915 APInt Result(getMemory(getNumWords(width)), width); in trunc()
963 APInt Result(getMemory(getNumWords(Width)), Width); in sext()
966 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in sext()
969 Result.U.pVal[getNumWords() - 1] = in sext()
970 SignExtend64(Result.U.pVal[getNumWords() - 1], in sext()
974 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext()
975 (Result.getNumWords() - getNumWords()) * APINT_WORD_SIZE); in sext()
990 APInt Result(getMemory(getNumWords(width)), width); in zext()
993 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in zext()
996 std::memset(Result.U.pVal + getNumWords(), 0, in zext()
997 (Result.getNumWords() - getNumWords()) * APINT_WORD_SIZE); in zext()
1038 unsigned WordsToMove = getNumWords() - WordShift; in ashrSlowCase()
1041 U.pVal[getNumWords() - 1] = SignExtend64( in ashrSlowCase()
1042 U.pVal[getNumWords() - 1], ((BitWidth - 1) % APINT_BITS_PER_WORD) + 1); in ashrSlowCase()
1076 tcShiftRight(U.pVal, getNumWords(), ShiftAmt); in lshrSlowCase()
1088 tcShiftLeft(U.pVal, getNumWords(), ShiftAmt); in shlSlowCase()
1553 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1555 unsigned rhsWords = getNumWords(rhsBits); in udiv()
1589 unsigned lhsWords = getNumWords(getActiveBits()); in udiv()
1644 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1648 unsigned rhsWords = getNumWords(rhsBits); in urem()
1681 unsigned lhsWords = getNumWords(getActiveBits()); in urem()
1744 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1746 unsigned rhsWords = getNumWords(rhsBits); in udivrem()
1794 (getNumWords(BitWidth) - lhsWords) * APINT_WORD_SIZE); in udivrem()
1796 (getNumWords(BitWidth) - rhsWords) * APINT_WORD_SIZE); in udivrem()
1813 unsigned lhsWords = getNumWords(LHS.getActiveBits()); in udivrem()
1857 (getNumWords(BitWidth) - lhsWords) * APINT_WORD_SIZE); in udivrem()
2108 U.pVal = getClearedMemory(getNumWords()); in fromString()