roundingMode rounding_mode)
{
unsigned int partCount = partCountForBits(width);
- opStatus status;
APInt api = APInt(width, partCount, parts);
- integerPart *copy = new integerPart[partCount];
sign = false;
if(isSigned && APInt::tcExtractBit(parts, width - 1)) {
api = -api;
}
- APInt::tcAssign(copy, api.getRawData(), partCount);
- status = convertFromUnsignedParts(copy, partCount, rounding_mode);
- return status;
+ return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
}
APFloat::opStatus