• Home
  • Raw
  • Download

Lines Matching refs:shiftAmt

1051 APInt APInt::ashr(const APInt &shiftAmt) const {  in ashr()
1052 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr()
1057 APInt APInt::ashr(unsigned shiftAmt) const { in ashr()
1058 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr()
1060 if (shiftAmt == 0) in ashr()
1065 if (shiftAmt == BitWidth) in ashr()
1070 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt)); in ashr()
1077 if (shiftAmt == BitWidth) { in ashr()
1088 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr()
1089 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr()
1142 APInt APInt::lshr(const APInt &shiftAmt) const { in lshr()
1143 return lshr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in lshr()
1148 APInt APInt::lshr(unsigned shiftAmt) const { in lshr()
1150 if (shiftAmt >= BitWidth) in lshr()
1153 return APInt(BitWidth, this->VAL >> shiftAmt); in lshr()
1159 if (shiftAmt >= BitWidth) in lshr()
1165 if (shiftAmt == 0) in lshr()
1172 if (shiftAmt < APINT_BITS_PER_WORD) { in lshr()
1173 lshrNear(val, pVal, getNumWords(), shiftAmt); in lshr()
1180 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; in lshr()
1181 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; in lshr()
1212 APInt APInt::shl(const APInt &shiftAmt) const { in shl()
1214 return shl((unsigned)shiftAmt.getLimitedValue(BitWidth)); in shl()
1217 APInt APInt::shlSlowCase(unsigned shiftAmt) const { in shlSlowCase()
1221 if (shiftAmt == BitWidth) in shlSlowCase()
1227 if (shiftAmt == 0) in shlSlowCase()
1234 if (shiftAmt < APINT_BITS_PER_WORD) { in shlSlowCase()
1237 val[i] = pVal[i] << shiftAmt | carry; in shlSlowCase()
1238 carry = pVal[i] >> (APINT_BITS_PER_WORD - shiftAmt); in shlSlowCase()
1246 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; in shlSlowCase()
1247 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; in shlSlowCase()