Home | History | Annotate | Download | only in Support

Lines Matching refs:VAL

76 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) {
78 pVal[0] = val;
79 if (isSigned && int64_t(val) < 0)
93 VAL = bigVal[0];
107 : BitWidth(numBits), VAL(0) {
112 : BitWidth(numBits), VAL(0) {
117 : BitWidth(numbits), VAL(0) {
137 VAL = 0;
144 VAL = RHS.VAL;
156 VAL = RHS;
169 ID.AddInteger(VAL);
198 ++VAL;
227 --VAL;
254 VAL += RHS.VAL;
281 VAL -= RHS.VAL;
358 VAL *= RHS.VAL;
400 VAL &= RHS.VAL;
412 VAL |= RHS.VAL;
424 VAL ^= RHS.VAL;
436 uint64_t* val = getMemory(numWords);
438 val[i] = pVal[i] & RHS.pVal[i];
439 return APInt(val, getBitWidth());
444 uint64_t *val = getMemory(numWords);
446 val[i] = pVal[i] | RHS.pVal[i];
447 return APInt(val, getBitWidth());
452 uint64_t *val = getMemory(numWords);
454 val[i] = pVal[i] ^ RHS.pVal[i];
457 return APInt(val, getBitWidth()).clearUnusedBits();
463 return APInt(BitWidth, VAL * RHS.VAL);
472 return APInt(BitWidth, VAL + RHS.VAL);
481 return APInt(BitWidth, VAL - RHS.VAL);
507 bool APInt::EqualSlowCase(uint64_t Val) const {
510 return pVal[0] == Val;
518 return VAL < RHS.VAL;
550 int64_t lhsSext = (int64_t(VAL) << (64-BitWidth)) >> (64-BitWidth);
551 int64_t rhsSext = (int64_t(RHS.VAL) << (64-BitWidth)) >> (64-BitWidth);
585 VAL |= maskBit(bitPosition);
594 VAL &= ~maskBit(bitPosition);
665 return hash_combine(Arg.VAL);
711 return CountLeadingOnes_64(VAL << (APINT_BITS_PER_WORD - BitWidth));
738 return std::min(unsigned(llvm::countTrailingZeros(VAL)), BitWidth);
780 return APInt(BitWidth, ByteSwap_16(uint16_t(VAL)));
782 return APInt(BitWidth, ByteSwap_32(unsigned(VAL)));
784 unsigned Tmp1 = unsigned(VAL >> 16);
786 uint16_t Tmp2 = uint16_t(VAL);
791 return APInt(BitWidth, ByteSwap_64(VAL));
861 // It is wrong to optimize getWord(0) to VAL; there might be more than one word.
946 uint64_t val = VAL << (APINT_BITS_PER_WORD - BitWidth);
947 val = (int64_t)val >> (width - BitWidth);
948 return APInt(width, val >> (APINT_BITS_PER_WORD - width));
987 return APInt(width, VAL);
1051 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt));
1066 uint64_t * val = new uint64_t[getNumWords()];
1080 val[i] = pVal[i+offset]; // move whole word
1085 val[breakWord] |= ~0ULL << bitsInWord; // set high bits
1091 val[i] = (pVal[i+offset] >> wordShift) |
1097 val[breakWord] = pVal[breakWord+offset] >> wordShift;
1104 val[breakWord-1] |=
1106 val[breakWord] |= ~0ULL;
1108 val[breakWord] |= (~0ULL << (bitsInWord - wordShift));
1115 val[i] = fillValue;
1116 return APInt(val, BitWidth).clearUnusedBits();
1132 return APInt(BitWidth, this->VAL >> shiftAmt);
1148 uint64_t * val = new uint64_t[getNumWords()];
1152 lshrNear(val, pVal, getNumWords(), shiftAmt);
1153 return APInt(val, BitWidth).clearUnusedBits();
1163 val[i] = pVal[i+offset];
1165 val[i] = 0;
1166 return APInt(val,BitWidth).clearUnusedBits();
1172 val[i] = (pVal[i+offset] >> wordShift) |
1175 val[breakWord] = pVal[breakWord+offset] >> wordShift;
1179 val[i] = 0;
1180 return APInt(val, BitWidth).clearUnusedBits();
1204 uint64_t * val = new uint64_t[getNumWords()];
1210 val[i] = pVal[i] << shiftAmt | carry;
1213 return APInt(val, BitWidth).clearUnusedBits();
1223 val[i] = 0;
1225 val[i] = pVal[i-offset];
1226 return APInt(val,BitWidth).clearUnusedBits();
1232 val[i] = pVal[i-offset] << wordShift |
1234 val[offset] = pVal[0] << wordShift;
1236 val[i] = 0;
1237 return APInt(val, BitWidth).clearUnusedBits();
1286 return APInt(BitWidth, results[ (isSingleWord() ? VAL : pVal[0]) ]);
1296 uint64_t(::round(::sqrt(double(isSingleWord()?VAL:pVal[0])))));
1299 uint64_t(::sqrt(double(isSingleWord()?VAL:pVal[0])) + 0.5));
1707 uint64_t tmp = (LHS.getNumWords() == 1 ? LHS.VAL : LHS.pVal[i]);
1716 uint64_t tmp = (RHS.getNumWords() == 1 ? RHS.VAL : RHS.pVal[i]);
1776 Quotient->VAL = 0;
1791 Quotient->VAL = tmp;
1807 Remainder->VAL = 0;
1822 Remainder->VAL = tmp;
1847 assert(RHS.VAL != 0 && "Divide by zero?");
1848 return APInt(BitWidth, VAL / RHS.VAL);
1893 assert(RHS.VAL != 0 && "Remainder by zero?");
1894 return APInt(BitWidth, VAL % RHS.VAL);
1967 uint64_t lhsValue = LHS.isSingleWord() ? LHS.VAL : LHS.pVal[0];
1968 uint64_t rhsValue = RHS.isSingleWord() ? RHS.VAL : RHS.pVal[0];
2112 apdigit.VAL = digit;