Lines Matching refs:shiftAmt
1032 APInt APInt::ashr(const APInt &shiftAmt) const { in ashr()
1033 return ashr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in ashr()
1038 APInt APInt::ashr(unsigned shiftAmt) const { in ashr()
1039 assert(shiftAmt <= BitWidth && "Invalid shift amount"); in ashr()
1041 if (shiftAmt == 0) in ashr()
1046 if (shiftAmt == BitWidth) in ashr()
1051 (((int64_t(VAL) << SignBit) >> SignBit) >> shiftAmt)); in ashr()
1058 if (shiftAmt == BitWidth) { in ashr()
1069 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; // bits to shift per word in ashr()
1070 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; // word offset for shift in ashr()
1121 APInt APInt::lshr(const APInt &shiftAmt) const { in lshr()
1122 return lshr((unsigned)shiftAmt.getLimitedValue(BitWidth)); in lshr()
1127 APInt APInt::lshr(unsigned shiftAmt) const { in lshr()
1129 if (shiftAmt >= BitWidth) in lshr()
1132 return APInt(BitWidth, this->VAL >> shiftAmt); in lshr()
1138 if (shiftAmt == BitWidth) in lshr()
1144 if (shiftAmt == 0) in lshr()
1151 if (shiftAmt < APINT_BITS_PER_WORD) { in lshr()
1152 lshrNear(val, pVal, getNumWords(), shiftAmt); in lshr()
1157 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; in lshr()
1158 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; in lshr()
1185 APInt APInt::shl(const APInt &shiftAmt) const { in shl()
1187 return shl((unsigned)shiftAmt.getLimitedValue(BitWidth)); in shl()
1190 APInt APInt::shlSlowCase(unsigned shiftAmt) const { in shlSlowCase()
1194 if (shiftAmt == BitWidth) in shlSlowCase()
1200 if (shiftAmt == 0) in shlSlowCase()
1207 if (shiftAmt < APINT_BITS_PER_WORD) { in shlSlowCase()
1210 val[i] = pVal[i] << shiftAmt | carry; in shlSlowCase()
1211 carry = pVal[i] >> (APINT_BITS_PER_WORD - shiftAmt); in shlSlowCase()
1217 unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD; in shlSlowCase()
1218 unsigned offset = shiftAmt / APINT_BITS_PER_WORD; in shlSlowCase()