Lines Matching refs:pVal
78 U.pVal = getClearedMemory(getNumWords()); in initSlowCase()
79 U.pVal[0] = val; in initSlowCase()
82 U.pVal[i] = WORDTYPE_MAX; 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()
102 memcpy(U.pVal, bigVal.data(), words * APINT_WORD_SIZE); in initFromArray()
133 delete [] U.pVal; in reallocate()
140 U.pVal = getMemory(getNumWords()); in reallocate()
155 memcpy(U.pVal, RHS.U.pVal, getNumWords() * APINT_WORD_SIZE); in AssignSlowCase()
169 ID.AddInteger(U.pVal[i]); 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 -=()
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()
266 tcMultiplyPart(U.pVal, U.pVal, RHS, 0, NumWords, NumWords, false); 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()
320 U.pVal[hiWord] |= hiMask; in setBitsSlowCase()
323 U.pVal[loWord] |= loMask; in setBitsSlowCase()
327 U.pVal[word] = WORDTYPE_MAX; in setBitsSlowCase()
332 tcComplement(U.pVal, getNumWords()); in flipAllBitsSlowCase()
370 U.pVal[loWord] &= ~(mask << loBit); in insertBits()
371 U.pVal[loWord] |= (subBits.U.VAL << loBit); in insertBits()
379 memcpy(U.pVal + loWord, subBits.getRawData(), in insertBits()
386 U.pVal[hi1Word] &= ~mask; in insertBits()
387 U.pVal[hi1Word] |= subBits.getWord(subBitWidth - 1); in insertBits()
412 U.pVal[loWord] &= ~(maskBits << loBit); in insertBits()
413 U.pVal[loWord] |= subBits << loBit; in insertBits()
419 U.pVal[loWord] &= ~(maskBits << loBit); in insertBits()
420 U.pVal[loWord] |= subBits << loBit; in insertBits()
422 U.pVal[hiWord] &= ~(maskBits >> (wordBits - loBit)); in insertBits()
423 U.pVal[hiWord] |= subBits >> (wordBits - loBit); in insertBits()
440 return APInt(numBits, U.pVal[loWord] >> loBit); in extractBits()
445 return APInt(numBits, makeArrayRef(U.pVal + loWord, 1 + hiWord - loWord)); in extractBits()
452 uint64_t *DestPtr = Result.isSingleWord() ? &Result.U.VAL : Result.U.pVal; in extractBits()
454 uint64_t w0 = U.pVal[loWord + word]; in extractBits()
456 (loWord + word + 1) < NumSrcWords ? U.pVal[loWord + word + 1] : 0; in extractBits()
478 return (U.pVal[loWord] >> loBit) & maskBits; in extractBitsAsZExtValue()
482 uint64_t retBits = U.pVal[loWord] >> loBit; in extractBitsAsZExtValue()
483 retBits |= U.pVal[hiWord] << (wordBits - loBit); in extractBitsAsZExtValue()
550 hash_combine_range(Arg.U.pVal, Arg.U.pVal + Arg.getNumWords())); in hash_value()
591 uint64_t V = U.pVal[i]; in countLeadingZerosSlowCase()
615 unsigned Count = llvm::countLeadingOnes(U.pVal[i] << shift); in countLeadingOnesSlowCase()
618 if (U.pVal[i] == WORDTYPE_MAX) in countLeadingOnesSlowCase()
621 Count += llvm::countLeadingOnes(U.pVal[i]); in countLeadingOnesSlowCase()
632 for (; i < getNumWords() && U.pVal[i] == 0; ++i) in countTrailingZerosSlowCase()
635 Count += llvm::countTrailingZeros(U.pVal[i]); in countTrailingZerosSlowCase()
642 for (; i < getNumWords() && U.pVal[i] == WORDTYPE_MAX; ++i) in countTrailingOnesSlowCase()
645 Count += llvm::countTrailingOnes(U.pVal[i]); in countTrailingOnesSlowCase()
653 Count += llvm::countPopulation(U.pVal[i]); in countPopulationSlowCase()
659 if ((U.pVal[i] & RHS.U.pVal[i]) != 0) in intersectsSlowCase()
667 if ((U.pVal[i] & ~RHS.U.pVal[i]) != 0) in isSubsetOfSlowCase()
687 Result.U.pVal[I] = ByteSwap_64(U.pVal[N - I - 1]); in byteSwap()
845 mantissa = Tmp.U.pVal[0]; in roundToDouble()
850 uint64_t hibits = Tmp.U.pVal[hiWord] << (52 - n % APINT_BITS_PER_WORD); in roundToDouble()
851 uint64_t lobits = Tmp.U.pVal[hiWord-1] >> (11 + n % APINT_BITS_PER_WORD); in roundToDouble()
874 Result.U.pVal[i] = U.pVal[i]; in trunc()
879 Result.U.pVal[i] = U.pVal[i] << bits >> bits; in trunc()
919 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in sext()
922 Result.U.pVal[getNumWords() - 1] = in sext()
923 SignExtend64(Result.U.pVal[getNumWords() - 1], in sext()
927 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext()
943 std::memcpy(Result.U.pVal, getRawData(), getNumWords() * APINT_WORD_SIZE); in zext()
946 std::memset(Result.U.pVal + getNumWords(), 0, in zext()
1009 U.pVal[getNumWords() - 1] = SignExtend64( in ashrSlowCase()
1010 U.pVal[getNumWords() - 1], ((BitWidth - 1) % APINT_BITS_PER_WORD) + 1); in ashrSlowCase()
1014 std::memmove(U.pVal, U.pVal + WordShift, WordsToMove * APINT_WORD_SIZE); in ashrSlowCase()
1018 U.pVal[i] = (U.pVal[i + WordShift] >> BitShift) | in ashrSlowCase()
1019 (U.pVal[i + WordShift + 1] << (APINT_BITS_PER_WORD - BitShift)); in ashrSlowCase()
1022 U.pVal[WordsToMove - 1] = U.pVal[WordShift + WordsToMove - 1] >> BitShift; in ashrSlowCase()
1024 U.pVal[WordsToMove - 1] = in ashrSlowCase()
1025 SignExtend64(U.pVal[WordsToMove - 1], APINT_BITS_PER_WORD - BitShift); in ashrSlowCase()
1030 std::memset(U.pVal + WordsToMove, Negative ? -1 : 0, in ashrSlowCase()
1044 tcShiftRight(U.pVal, getNumWords(), ShiftAmt); in lshrSlowCase()
1056 tcShiftLeft(U.pVal, getNumWords(), ShiftAmt); in shlSlowCase()
1119 return APInt(BitWidth, results[ (isSingleWord() ? U.VAL : U.pVal[0]) ]); in sqrt()
1129 : U.pVal[0]))))); in sqrt()
1634 return APInt(BitWidth, this->U.pVal[0] / RHS.U.pVal[0]); in udiv()
1638 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, nullptr); in udiv()
1667 return APInt(BitWidth, this->U.pVal[0] / RHS); in udiv()
1671 divide(U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, nullptr); in udiv()
1727 return APInt(BitWidth, U.pVal[0] % RHS.U.pVal[0]); in urem()
1731 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, nullptr, Remainder.U.pVal); in urem()
1759 return U.pVal[0] % RHS; in urem()
1763 divide(U.pVal, lhsWords, &RHS, 1, nullptr, &Remainder); in urem()
1843 uint64_t lhsValue = LHS.U.pVal[0]; in udivrem()
1844 uint64_t rhsValue = RHS.U.pVal[0]; in udivrem()
1851 divide(LHS.U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, in udivrem()
1852 Remainder.U.pVal); in udivrem()
1854 std::memset(Quotient.U.pVal + lhsWords, 0, in udivrem()
1856 std::memset(Remainder.U.pVal + rhsWords, 0, in udivrem()
1908 uint64_t lhsValue = LHS.U.pVal[0]; in udivrem()
1915 divide(LHS.U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, &Remainder); in udivrem()
1917 std::memset(Quotient.U.pVal + lhsWords, 0, in udivrem()
2145 U.pVal = getClearedMemory(getNumWords()); in fromString()