return r;
r = cdigit - 'A';
- if (r <= unsigned(radix - 11U))
+ if (r <= radix - 11U)
return r + 10;
r = cdigit - 'a';
- if (r <= unsigned(radix - 11U))
+ if (r <= radix - 11U)
return r + 10;
radix = 10;
clearAllBits();
unsigned wordsToCopy = destWords >= getNumWords() ? getNumWords() : destWords;
memcpy(pVal, dest, wordsToCopy * APINT_WORD_SIZE);
+ clearUnusedBits();
// delete dest array and return
delete[] dest;
return APInt(BitWidth, VAL * RHS.VAL);
APInt Result(*this);
Result *= RHS;
- return Result.clearUnusedBits();
+ return Result;
}
APInt APInt::operator+(const APInt& RHS) const {