Lines Matching refs:pVal
78 pVal = getClearedMemory(getNumWords());
79 pVal[0] = val;
82 pVal[i] = -1ULL;
86 pVal = getMemory(getNumWords());
87 memcpy(pVal, that.pVal, getNumWords() * APINT_WORD_SIZE);
97 pVal = getClearedMemory(getNumWords());
100 // Copy the words from bigVal to pVal
101 memcpy(pVal, bigVal.data(), words * APINT_WORD_SIZE);
131 memcpy(pVal, RHS.pVal, getNumWords() * APINT_WORD_SIZE);
139 pVal = getMemory(RHS.getNumWords());
140 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE);
142 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE);
144 delete [] pVal;
147 delete [] pVal;
148 pVal = getMemory(RHS.getNumWords());
149 memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE);
159 pVal[0] = RHS;
160 memset(pVal+1, 0, (getNumWords() - 1) * APINT_WORD_SIZE);
176 ID.AddInteger(pVal[i]);
201 add_1(pVal, pVal, getNumWords(), 1);
230 sub_1(pVal, getNumWords(), 1);
257 add(pVal, pVal, RHS.pVal, getNumWords());
284 sub(pVal, pVal, RHS.pVal, getNumWords());
385 mul(dest, pVal, lhsWords, RHS.pVal, rhsWords);
390 memcpy(pVal, dest, wordsToCopy * APINT_WORD_SIZE);
406 pVal[i] &= RHS.pVal[i];
418 pVal[i] |= RHS.pVal[i];
431 pVal[i] ^= RHS.pVal[i];
439 val[i] = pVal[i] & RHS.pVal[i];
447 val[i] = pVal[i] | RHS.pVal[i];
455 val[i] = pVal[i] ^ RHS.pVal[i];
475 add(Result.pVal, this->pVal, RHS.pVal, getNumWords());
484 sub(Result.pVal, this->pVal, RHS.pVal, getNumWords());
499 return pVal[0] == RHS.pVal[0];
503 if (pVal[i] != RHS.pVal[i])
511 return pVal[0] == Val;
535 return pVal[0] < RHS.pVal[0];
540 if (pVal[i] > RHS.pVal[i])
542 if (pVal[i] < RHS.pVal[i])
588 pVal[whichWord(bitPosition)] |= maskBit(bitPosition);
597 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition);
668 return hash_combine_range(Arg.pVal, Arg.pVal + Arg.getNumWords());
694 integerPart MSW = pVal[i-1] & MSWMask;
700 if (pVal[i-1] == 0)
703 Count += llvm::countLeadingZeros(pVal[i-1]);
723 unsigned Count = CountLeadingOnes_64(pVal[i] << shift);
726 if (pVal[i] == -1ULL)
729 Count += CountLeadingOnes_64(pVal[i]);
742 for (; i < getNumWords() && pVal[i] == 0; ++i)
745 Count += llvm::countTrailingZeros(pVal[i]);
752 for (; i < getNumWords() && pVal[i] == -1ULL; ++i)
755 Count += CountTrailingOnes_64(pVal[i]);
762 Count += CountPopulation_64(pVal[i]);
796 Result.pVal[I] = ByteSwap_64(pVal[N - I - 1]);
798 lshrNear(Result.pVal, Result.pVal, getNumWords(),
895 // extract the high 52 bits from the correct words in pVal.
899 mantissa = Tmp.pVal[0];
904 uint64_t hibits = Tmp.pVal[hiWord] << (52 - n % APINT_BITS_PER_WORD);
905 uint64_t lobits = Tmp.pVal[hiWord-1] >> (11 + n % APINT_BITS_PER_WORD);
932 Result.pVal[i] = pVal[i];
937 Result.pVal[i] = pVal[i] << bits >> bits;
959 Result.pVal[i] = word;
971 Result.pVal[i] = word;
978 Result.pVal[i] = word << bits >> bits;
995 Result.pVal[i] = getRawData()[i];
998 memset(&Result.pVal[i], 0, (Result.getNumWords() - i) * APINT_WORD_SIZE);
1081 val[i] = pVal[i+offset]; // move whole word
1092 val[i] = (pVal[i+offset] >> wordShift) |
1093 (pVal[i+offset+1] << (APINT_BITS_PER_WORD - wordShift));
1098 val[breakWord] = pVal[breakWord+offset] >> wordShift;
1153 lshrNear(val, pVal, getNumWords(), shiftAmt);
1164 val[i] = pVal[i+offset];
1173 val[i] = (pVal[i+offset] >> wordShift) |
1174 (pVal[i+offset+1] << (APINT_BITS_PER_WORD - wordShift));
1176 val[breakWord] = pVal[breakWord+offset] >> wordShift;
1211 val[i] = pVal[i] << shiftAmt | carry;
1212 carry = pVal[i] >> (APINT_BITS_PER_WORD - shiftAmt);
1226 val[i] = pVal[i-offset];
1233 val[i] = pVal[i-offset] << wordShift |
1234 pVal[i-offset-1] >> (APINT_BITS_PER_WORD - wordShift);
1235 val[offset] = pVal[0] << wordShift;
1287 return APInt(BitWidth, results[ (isSingleWord() ? VAL : pVal[0]) ]);
1297 uint64_t(::round(::sqrt(double(isSingleWord()?VAL:pVal[0])))));
1300 uint64_t(::sqrt(double(isSingleWord()?VAL:pVal[0])) + 0.5));
1708 uint64_t tmp = (LHS.getNumWords() == 1 ? LHS.VAL : LHS.pVal[i]);
1717 uint64_t tmp = (RHS.getNumWords() == 1 ? RHS.VAL : RHS.pVal[i]);
1779 delete [] Quotient->pVal;
1782 Quotient->pVal = getClearedMemory(Quotient->getNumWords());
1794 Quotient->pVal[0] = tmp;
1798 Quotient->pVal[i] =
1810 delete [] Remainder->pVal;
1813 Remainder->pVal = getClearedMemory(Remainder->getNumWords());
1825 Remainder->pVal[0] = tmp;
1829 Remainder->pVal[i] =
1871 return APInt(BitWidth, this->pVal[0] / RHS.pVal[0]);
1919 return APInt(BitWidth, pVal[0] % RHS.pVal[0]);
1968 uint64_t lhsValue = LHS.isSingleWord() ? LHS.VAL : LHS.pVal[0];
1969 pVal[0];
2088 pVal = getClearedMemory(getNumWords());
2115 apdigit.pVal[0] = digit;