Lines Matching refs:pVal

76   U.pVal = getClearedMemory(getNumWords());  in initSlowCase()
77 U.pVal[0] = val; in initSlowCase()
80 U.pVal[i] = WORDTYPE_MAX; in initSlowCase()
85 U.pVal = getMemory(getNumWords()); in initSlowCase()
86 memcpy(U.pVal, that.U.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
95 U.pVal = getClearedMemory(getNumWords()); in initFromArray()
99 memcpy(U.pVal, bigVal.data(), words * APINT_WORD_SIZE); in initFromArray()
128 delete [] U.pVal; in reallocate()
135 U.pVal = getMemory(getNumWords()); in reallocate()
150 memcpy(U.pVal, RHS.U.pVal, getNumWords() * APINT_WORD_SIZE); in assignSlowCase()
164 ID.AddInteger(U.pVal[i]); in Profile()
172 tcIncrement(U.pVal, getNumWords()); in operator ++()
181 tcDecrement(U.pVal, getNumWords()); in operator --()
193 tcAdd(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator +=()
201 tcAddPart(U.pVal, RHS, getNumWords()); in operator +=()
213 tcSubtract(U.pVal, RHS.U.pVal, 0, getNumWords()); in operator -=()
221 tcSubtractPart(U.pVal, RHS, getNumWords()); in operator -=()
231 tcMultiply(Result.U.pVal, U.pVal, RHS.U.pVal, getNumWords()); in operator *()
237 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in andAssignSlowCase()
243 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in orAssignSlowCase()
249 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in xorAssignSlowCase()
264 tcMultiplyPart(U.pVal, U.pVal, RHS, 0, NumWords, NumWords, false); in operator *=()
270 return std::equal(U.pVal, U.pVal + getNumWords(), RHS.U.pVal); in equalSlowCase()
278 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compare()
298 return tcCompare(U.pVal, RHS.U.pVal, getNumWords()); in compareSigned()
318 U.pVal[hiWord] |= hiMask; in setBitsSlowCase()
321 U.pVal[loWord] |= loMask; in setBitsSlowCase()
325 U.pVal[word] = WORDTYPE_MAX; in setBitsSlowCase()
336 tcComplement(U.pVal, getNumWords()); in flipAllBitsSlowCase()
388 U.pVal[loWord] &= ~(mask << loBit); in insertBits()
389 U.pVal[loWord] |= (subBits.U.VAL << loBit); in insertBits()
397 memcpy(U.pVal + loWord, subBits.getRawData(), in insertBits()
404 U.pVal[hi1Word] &= ~mask; in insertBits()
405 U.pVal[hi1Word] |= subBits.getWord(subBitWidth - 1); in insertBits()
430 U.pVal[loWord] &= ~(maskBits << loBit); in insertBits()
431 U.pVal[loWord] |= subBits << loBit; in insertBits()
437 U.pVal[loWord] &= ~(maskBits << loBit); in insertBits()
438 U.pVal[loWord] |= subBits << loBit; in insertBits()
440 U.pVal[hiWord] &= ~(maskBits >> (wordBits - loBit)); in insertBits()
441 U.pVal[hiWord] |= subBits >> (wordBits - loBit); in insertBits()
457 return APInt(numBits, U.pVal[loWord] >> loBit); in extractBits()
462 return APInt(numBits, makeArrayRef(U.pVal + loWord, 1 + hiWord - loWord)); in extractBits()
469 uint64_t *DestPtr = Result.isSingleWord() ? &Result.U.VAL : Result.U.pVal; in extractBits()
471 uint64_t w0 = U.pVal[loWord + word]; in extractBits()
473 (loWord + word + 1) < NumSrcWords ? U.pVal[loWord + word + 1] : 0; in extractBits()
495 return (U.pVal[loWord] >> loBit) & maskBits; in extractBitsAsZExtValue()
499 uint64_t retBits = U.pVal[loWord] >> loBit; in extractBitsAsZExtValue()
500 retBits |= U.pVal[hiWord] << (wordBits - loBit); in extractBitsAsZExtValue()
584 hash_combine_range(Arg.U.pVal, Arg.U.pVal + Arg.getNumWords())); in hash_value()
625 uint64_t V = U.pVal[i]; in countLeadingZerosSlowCase()
649 unsigned Count = llvm::countLeadingOnes(U.pVal[i] << shift); in countLeadingOnesSlowCase()
652 if (U.pVal[i] == WORDTYPE_MAX) in countLeadingOnesSlowCase()
655 Count += llvm::countLeadingOnes(U.pVal[i]); in countLeadingOnesSlowCase()
666 for (; i < getNumWords() && U.pVal[i] == 0; ++i) in countTrailingZerosSlowCase()
669 Count += llvm::countTrailingZeros(U.pVal[i]); in countTrailingZerosSlowCase()
676 for (; i < getNumWords() && U.pVal[i] == WORDTYPE_MAX; ++i) in countTrailingOnesSlowCase()
679 Count += llvm::countTrailingOnes(U.pVal[i]); in countTrailingOnesSlowCase()
687 Count += llvm::countPopulation(U.pVal[i]); in countPopulationSlowCase()
693 if ((U.pVal[i] & RHS.U.pVal[i]) != 0) in intersectsSlowCase()
701 if ((U.pVal[i] & ~RHS.U.pVal[i]) != 0) in isSubsetOfSlowCase()
721 Result.U.pVal[I] = ByteSwap_64(U.pVal[N - I - 1]); in byteSwap()
881 mantissa = Tmp.U.pVal[0]; in roundToDouble()
886 uint64_t hibits = Tmp.U.pVal[hiWord] << (52 - n % APINT_BITS_PER_WORD); in roundToDouble()
887 uint64_t lobits = Tmp.U.pVal[hiWord-1] >> (11 + n % APINT_BITS_PER_WORD); in roundToDouble()
912 Result.U.pVal[i] = U.pVal[i]; in trunc()
917 Result.U.pVal[i] = U.pVal[i] << bits >> bits; in trunc()
958 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in sext()
961 Result.U.pVal[getNumWords() - 1] = in sext()
962 SignExtend64(Result.U.pVal[getNumWords() - 1], in sext()
966 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext()
985 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in zext()
988 std::memset(Result.U.pVal + getNumWords(), 0, in zext()
1033 U.pVal[getNumWords() - 1] = SignExtend64( in ashrSlowCase()
1034 U.pVal[getNumWords() - 1], ((BitWidth - 1) % APINT_BITS_PER_WORD) + 1); in ashrSlowCase()
1038 std::memmove(U.pVal, U.pVal + WordShift, WordsToMove * APINT_WORD_SIZE); in ashrSlowCase()
1042 U.pVal[i] = (U.pVal[i + WordShift] >> BitShift) | in ashrSlowCase()
1043 (U.pVal[i + WordShift + 1] << (APINT_BITS_PER_WORD - BitShift)); in ashrSlowCase()
1046 U.pVal[WordsToMove - 1] = U.pVal[WordShift + WordsToMove - 1] >> BitShift; in ashrSlowCase()
1048 U.pVal[WordsToMove - 1] = in ashrSlowCase()
1049 SignExtend64(U.pVal[WordsToMove - 1], APINT_BITS_PER_WORD - BitShift); in ashrSlowCase()
1054 std::memset(U.pVal + WordsToMove, Negative ? -1 : 0, in ashrSlowCase()
1068 tcShiftRight(U.pVal, getNumWords(), ShiftAmt); in lshrSlowCase()
1080 tcShiftLeft(U.pVal, getNumWords(), ShiftAmt); in shlSlowCase()
1178 return APInt(BitWidth, results[ (isSingleWord() ? U.VAL : U.pVal[0]) ]); in sqrt()
1188 : U.pVal[0]))))); in sqrt()
1601 return APInt(BitWidth, this->U.pVal[0] / RHS.U.pVal[0]); in udiv()
1605 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, nullptr); in udiv()
1634 return APInt(BitWidth, this->U.pVal[0] / RHS); in udiv()
1638 divide(U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, nullptr); in udiv()
1694 return APInt(BitWidth, U.pVal[0] % RHS.U.pVal[0]); in urem()
1698 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, nullptr, Remainder.U.pVal); in urem()
1726 return U.pVal[0] % RHS; in urem()
1730 divide(U.pVal, lhsWords, &RHS, 1, nullptr, &Remainder); in urem()
1810 uint64_t lhsValue = LHS.U.pVal[0]; in udivrem()
1811 uint64_t rhsValue = RHS.U.pVal[0]; in udivrem()
1818 divide(LHS.U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, in udivrem()
1819 Remainder.U.pVal); in udivrem()
1821 std::memset(Quotient.U.pVal + lhsWords, 0, in udivrem()
1823 std::memset(Remainder.U.pVal + rhsWords, 0, in udivrem()
1875 uint64_t lhsValue = LHS.U.pVal[0]; in udivrem()
1882 divide(LHS.U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, &Remainder); in udivrem()
1884 std::memset(Quotient.U.pVal + lhsWords, 0, in udivrem()
2113 U.pVal = getClearedMemory(getNumWords()); in fromString()