Lines Matching refs:parts
352 lostFractionThroughTruncation(const integerPart *parts, in lostFractionThroughTruncation() argument
358 lsb = APInt::tcLSB(parts, partCount); in lostFractionThroughTruncation()
366 APInt::tcExtractBit(parts, bits - 1)) in lostFractionThroughTruncation()
374 shiftRight(integerPart *dst, unsigned int parts, unsigned int bits) in shiftRight() argument
378 lost_fraction = lostFractionThroughTruncation(dst, parts, bits); in shiftRight()
380 APInt::tcShiftRight(dst, parts, bits); in shiftRight()
422 ulpsFromBoundary(const integerPart *parts, unsigned int bits, bool isNearest) in ulpsFromBoundary() argument
433 part = parts[count] & (~(integerPart) 0 >> (integerPartWidth - partBits)); in ulpsFromBoundary()
449 if (parts[count]) in ulpsFromBoundary()
452 return parts[0]; in ulpsFromBoundary()
455 if (~parts[count]) in ulpsFromBoundary()
458 return -parts[0]; in ulpsFromBoundary()
594 significand.parts = new integerPart[count]; in initialize()
601 delete [] significand.parts; in freeSignificand()
813 return significand.parts; in significandParts()
841 integerPart *parts; in addSignificand() local
843 parts = significandParts(); in addSignificand()
848 return APInt::tcAdd(parts, rhs.significandParts(), 0, partCount()); in addSignificand()
856 integerPart *parts; in subtractSignificand() local
858 parts = significandParts(); in subtractSignificand()
863 return APInt::tcSubtract(parts, rhs.significandParts(), borrow, in subtractSignificand()
923 significand.parts = fullSignificand; in multiplySignificand()
1652 int parts = partCount(); in remainder() local
1653 integerPart *x = new integerPart[parts]; in remainder()
1655 fs = V.convertToInteger(x, parts * integerPartWidth, true, in remainder()
1660 fs = V.convertFromZeroExtendedInteger(x, parts * integerPartWidth, true, in remainder()
1693 int parts = partCount(); in mod() local
1694 integerPart *x = new integerPart[parts]; in mod()
1696 fs = V.convertToInteger(x, parts * integerPartWidth, true, in mod()
1701 fs = V.convertFromZeroExtendedInteger(x, parts * integerPartWidth, true, in mod()
1873 significand.parts = newParts; in convert()
1945 APFloat::convertToSignExtendedInteger(integerPart *parts, unsigned int width, in convertToSignExtendedInteger() argument
1965 APInt::tcSet(parts, 0, dstPartsCount); in convertToSignExtendedInteger()
1977 APInt::tcSet(parts, 0, dstPartsCount); in convertToSignExtendedInteger()
1993 APInt::tcExtract(parts, dstPartsCount, src, bits, truncatedBits); in convertToSignExtendedInteger()
1996 APInt::tcExtract(parts, dstPartsCount, src, semantics->precision, 0); in convertToSignExtendedInteger()
1997 APInt::tcShiftLeft(parts, dstPartsCount, bits - semantics->precision); in convertToSignExtendedInteger()
2009 if (APInt::tcIncrement(parts, dstPartsCount)) in convertToSignExtendedInteger()
2017 unsigned int omsb = APInt::tcMSB(parts, dstPartsCount) + 1; in convertToSignExtendedInteger()
2028 if (omsb == width && APInt::tcLSB(parts, dstPartsCount) + 1 != omsb) in convertToSignExtendedInteger()
2036 APInt::tcNegate (parts, dstPartsCount); in convertToSignExtendedInteger()
2059 APFloat::convertToInteger(integerPart *parts, unsigned int width, in convertToInteger() argument
2065 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode, in convertToInteger()
2080 APInt::tcSetLeastSignificantBits(parts, dstPartsCount, bits); in convertToInteger()
2082 APInt::tcShiftLeft(parts, dstPartsCount, width - 1); in convertToInteger()
2097 SmallVector<uint64_t, 4> parts(result.getNumWords()); in convertToInteger() local
2099 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact); in convertToInteger()
2101 result = APInt(bitWidth, parts); in convertToInteger()
2190 APFloat::convertFromZeroExtendedInteger(const integerPart *parts, in convertFromZeroExtendedInteger() argument
2195 APInt api = APInt(width, makeArrayRef(parts, partCount)); in convertFromZeroExtendedInteger()
2198 if (isSigned && APInt::tcExtractBit(parts, width - 1)) { in convertFromZeroExtendedInteger()
2301 unsigned int parts, pow5PartCount; in roundSignificandWithExponent() local
2309 parts = partCountForBits(semantics->precision + 11); in roundSignificandWithExponent()
2314 for (;; parts *= 2) { in roundSignificandWithExponent()
2318 calcSemantics.precision = parts * integerPartWidth - 1; in roundSignificandWithExponent()