Lines Matching refs:pVal

79   U.pVal = getClearedMemory(getNumWords());  in initSlowCase()
80 U.pVal[0] = val; in initSlowCase()
83 U.pVal[i] = WORDTYPE_MAX; 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()
103 memcpy(U.pVal, bigVal.data(), words * APINT_WORD_SIZE); in initFromArray()
134 delete [] U.pVal; in reallocate()
141 U.pVal = getMemory(getNumWords()); in reallocate()
156 memcpy(U.pVal, RHS.U.pVal, getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
170 ID.AddInteger(U.pVal[i]); 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 -=()
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()
267 tcMultiplyPart(U.pVal, U.pVal, RHS, 0, NumWords, NumWords, false); 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()
321 U.pVal[hiWord] |= hiMask; in setBitsSlowCase()
324 U.pVal[loWord] |= loMask; in setBitsSlowCase()
328 U.pVal[word] = WORDTYPE_MAX; in setBitsSlowCase()
333 tcComplement(U.pVal, getNumWords()); in flipAllBitsSlowCase()
372 U.pVal[loWord] &= ~(mask << loBit); in insertBits()
373 U.pVal[loWord] |= (subBits.U.VAL << loBit); in insertBits()
381 memcpy(U.pVal + loWord, subBits.getRawData(), in insertBits()
388 U.pVal[hi1Word] &= ~mask; in insertBits()
389 U.pVal[hi1Word] |= subBits.getWord(subBitWidth - 1); in insertBits()
419 return APInt(numBits, U.pVal[loWord] >> loBit); in extractBits()
424 return APInt(numBits, makeArrayRef(U.pVal + loWord, 1 + hiWord - loWord)); in extractBits()
431 uint64_t *DestPtr = Result.isSingleWord() ? &Result.U.VAL : Result.U.pVal; in extractBits()
433 uint64_t w0 = U.pVal[loWord + word]; in extractBits()
435 (loWord + word + 1) < NumSrcWords ? U.pVal[loWord + word + 1] : 0; in extractBits()
499 return hash_combine_range(Arg.U.pVal, Arg.U.pVal + Arg.getNumWords()); in hash_value()
536 uint64_t V = U.pVal[i]; in countLeadingZerosSlowCase()
560 unsigned Count = llvm::countLeadingOnes(U.pVal[i] << shift); in countLeadingOnesSlowCase()
563 if (U.pVal[i] == WORDTYPE_MAX) in countLeadingOnesSlowCase()
566 Count += llvm::countLeadingOnes(U.pVal[i]); in countLeadingOnesSlowCase()
577 for (; i < getNumWords() && U.pVal[i] == 0; ++i) in countTrailingZerosSlowCase()
580 Count += llvm::countTrailingZeros(U.pVal[i]); in countTrailingZerosSlowCase()
587 for (; i < getNumWords() && U.pVal[i] == WORDTYPE_MAX; ++i) in countTrailingOnesSlowCase()
590 Count += llvm::countTrailingOnes(U.pVal[i]); in countTrailingOnesSlowCase()
598 Count += llvm::countPopulation(U.pVal[i]); in countPopulationSlowCase()
604 if ((U.pVal[i] & RHS.U.pVal[i]) != 0) in intersectsSlowCase()
612 if ((U.pVal[i] & ~RHS.U.pVal[i]) != 0) in isSubsetOfSlowCase()
636 Result.U.pVal[I] = ByteSwap_64(U.pVal[N - I - 1]); in byteSwap()
794 mantissa = Tmp.U.pVal[0]; in roundToDouble()
799 uint64_t hibits = Tmp.U.pVal[hiWord] << (52 - n % APINT_BITS_PER_WORD); in roundToDouble()
800 uint64_t lobits = Tmp.U.pVal[hiWord-1] >> (11 + n % APINT_BITS_PER_WORD); in roundToDouble()
823 Result.U.pVal[i] = U.pVal[i]; in trunc()
828 Result.U.pVal[i] = U.pVal[i] << bits >> bits; in trunc()
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()
867 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in zext()
870 std::memset(Result.U.pVal + getNumWords(), 0, in zext()
927 U.pVal[getNumWords() - 1] = SignExtend64( in ashrSlowCase()
928 U.pVal[getNumWords() - 1], ((BitWidth - 1) % APINT_BITS_PER_WORD) + 1); in ashrSlowCase()
932 std::memmove(U.pVal, U.pVal + WordShift, WordsToMove * APINT_WORD_SIZE); in ashrSlowCase()
936 U.pVal[i] = (U.pVal[i + WordShift] >> BitShift) | in ashrSlowCase()
937 (U.pVal[i + WordShift + 1] << (APINT_BITS_PER_WORD - BitShift)); in ashrSlowCase()
940 U.pVal[WordsToMove - 1] = U.pVal[WordShift + WordsToMove - 1] >> BitShift; in ashrSlowCase()
942 U.pVal[WordsToMove - 1] = in ashrSlowCase()
943 SignExtend64(U.pVal[WordsToMove - 1], APINT_BITS_PER_WORD - BitShift); in ashrSlowCase()
948 std::memset(U.pVal + WordsToMove, Negative ? -1 : 0, in ashrSlowCase()
962 tcShiftRight(U.pVal, getNumWords(), ShiftAmt); in lshrSlowCase()
974 tcShiftLeft(U.pVal, getNumWords(), ShiftAmt); in shlSlowCase()
1037 return APInt(BitWidth, results[ (isSingleWord() ? U.VAL : U.pVal[0]) ]); in sqrt()
1047 : U.pVal[0]))))); in sqrt()
1550 return APInt(BitWidth, this->U.pVal[0] / RHS.U.pVal[0]); in udiv()
1554 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, nullptr); in udiv()
1583 return APInt(BitWidth, this->U.pVal[0] / RHS); in udiv()
1587 divide(U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, nullptr); in udiv()
1643 return APInt(BitWidth, U.pVal[0] % RHS.U.pVal[0]); in urem()
1647 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, nullptr, Remainder.U.pVal); in urem()
1675 return U.pVal[0] % RHS; in urem()
1679 divide(U.pVal, lhsWords, &RHS, 1, nullptr, &Remainder); in urem()
1759 uint64_t lhsValue = LHS.U.pVal[0]; in udivrem()
1760 uint64_t rhsValue = RHS.U.pVal[0]; in udivrem()
1767 divide(LHS.U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, in udivrem()
1768 Remainder.U.pVal); in udivrem()
1770 std::memset(Quotient.U.pVal + lhsWords, 0, in udivrem()
1772 std::memset(Remainder.U.pVal + rhsWords, 0, in udivrem()
1824 uint64_t lhsValue = LHS.U.pVal[0]; in udivrem()
1831 divide(LHS.U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, &Remainder); in udivrem()
1833 std::memset(Quotient.U.pVal + lhsWords, 0, in udivrem()
2014 U.pVal = getClearedMemory(getNumWords()); in fromString()