Home | History | Annotate | Download | only in ADT

Lines Matching defs:VAL

78   /// integer bit-width <= 64, it uses VAL, otherwise it uses pVal.
80 uint64_t VAL; ///< Used to store the <= 64 bits integer value.
96 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { }
143 VAL &= mask;
152 return isSingleWord() ? VAL : pVal[whichWord(bitPosition)];
179 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned);
206 bool EqualSlowCase(uint64_t Val) const;
220 /// If isSigned is true then val is treated as if it were a signed value
223 /// the range of val are zero filled).
225 /// @param val the initial value of the APInt
226 /// @param isSigned how to treat signedness of val
227 /// @brief Create a new APInt of numBits width, initialized as val.
228 APInt(unsigned numBits, uint64_t val, bool isSigned = false)
229 : BitWidth(numBits), VAL(0) {
232 VAL = val;
234 initSlowCase(numBits, val, isSigned);
268 : BitWidth(that.BitWidth), VAL(0) {
271 VAL = that.VAL;
331 return BitWidth == 1 ? VAL == 0 :
346 return BitWidth == 1 ? VAL == 1 : isNegative() && isPowerOf2();
356 return isUIntN(N, VAL);
370 return isPowerOf2_64(VAL);
514 return &VAL;
566 return !VAL;
582 VAL = RHS.VAL;
616 VAL |= RHS;
662 return APInt(getBitWidth(), VAL & RHS.VAL);
675 return APInt(getBitWidth(), VAL | RHS.VAL);
688 return APInt(BitWidth, VAL ^ RHS.VAL);
736 return APInt(BitWidth, VAL << shiftAmt);
848 (isSingleWord() ? VAL : pVal[whichWord(bitPosition)])) != 0;
860 return VAL == RHS.VAL;
866 /// @returns true if *this == Val
868 bool operator==(uint64_t Val) const {
870 return VAL == Val;
871 return EqualSlowCase(Val);
876 /// @returns true if *this == Val
884 /// @returns true if *this != Val
892 /// @returns true if *this != Val
894 bool operator!=(uint64_t Val) const {
895 return !((*this) == Val);
900 /// @returns true if *this != Val
1086 VAL = -1ULL;
1103 VAL = 0;
1115 VAL ^= -1ULL;
1186 return VAL;
1197 return int64_t(VAL << (APINT_BITS_PER_WORD - BitWidth)) >>
1217 return CountLeadingZeros_64(VAL) - unusedBits;
1254 return CountTrailingOnes_64(VAL);
1266 return CountPopulation_64(VAL);
1323 T.I = (isSingleWord() ? VAL : pVal[0]);
1336 T.I = unsigned((isSingleWord() ? VAL : pVal[0]));