Lines Matching refs:parts
646 lostFractionThroughTruncation(const APFloatBase::integerPart *parts, in lostFractionThroughTruncation() argument
652 lsb = APInt::tcLSB(parts, partCount); in lostFractionThroughTruncation()
660 APInt::tcExtractBit(parts, bits - 1)) in lostFractionThroughTruncation()
668 shiftRight(APFloatBase::integerPart *dst, unsigned int parts, unsigned int bits) in shiftRight() argument
672 lost_fraction = lostFractionThroughTruncation(dst, parts, bits); in shiftRight()
674 APInt::tcShiftRight(dst, parts, bits); in shiftRight()
716 ulpsFromBoundary(const APFloatBase::integerPart *parts, unsigned int bits, in ulpsFromBoundary() argument
727 …part = parts[count] & (~(APFloatBase::integerPart) 0 >> (APFloatBase::integerPartWidth - partBits)… in ulpsFromBoundary()
743 if (parts[count]) in ulpsFromBoundary()
746 return parts[0]; in ulpsFromBoundary()
749 if (~parts[count]) in ulpsFromBoundary()
752 return -parts[0]; in ulpsFromBoundary()
882 significand.parts = new integerPart[count]; in initialize()
887 delete [] significand.parts; in freeSignificand()
1191 return significand.parts; in significandParts()
1213 integerPart *parts; in addSignificand() local
1215 parts = significandParts(); in addSignificand()
1220 return APInt::tcAdd(parts, rhs.significandParts(), 0, partCount()); in addSignificand()
1227 integerPart *parts; in subtractSignificand() local
1229 parts = significandParts(); in subtractSignificand()
1234 return APInt::tcSubtract(parts, rhs.significandParts(), borrow, in subtractSignificand()
1312 significand.parts = fullSignificand; in multiplySignificand()
1518 static void tcSetLeastSignificantBits(APInt::WordType *dst, unsigned parts, in tcSetLeastSignificantBits() argument
1529 while (i < parts) in tcSetLeastSignificantBits()
2534 significand.parts = newParts; in convert()
2617 MutableArrayRef<integerPart> parts, unsigned int width, bool isSigned, in convertToSignExtendedInteger() argument
2630 assert(dstPartsCount <= parts.size() && "Integer too big"); in convertToSignExtendedInteger()
2633 APInt::tcSet(parts.data(), 0, dstPartsCount); in convertToSignExtendedInteger()
2645 APInt::tcSet(parts.data(), 0, dstPartsCount); in convertToSignExtendedInteger()
2661 APInt::tcExtract(parts.data(), dstPartsCount, src, bits, truncatedBits); in convertToSignExtendedInteger()
2664 APInt::tcExtract(parts.data(), dstPartsCount, src, semantics->precision, in convertToSignExtendedInteger()
2666 APInt::tcShiftLeft(parts.data(), dstPartsCount, in convertToSignExtendedInteger()
2679 if (APInt::tcIncrement(parts.data(), dstPartsCount)) in convertToSignExtendedInteger()
2687 unsigned int omsb = APInt::tcMSB(parts.data(), dstPartsCount) + 1; in convertToSignExtendedInteger()
2699 APInt::tcLSB(parts.data(), dstPartsCount) + 1 != omsb) in convertToSignExtendedInteger()
2707 APInt::tcNegate (parts.data(), dstPartsCount); in convertToSignExtendedInteger()
2730 IEEEFloat::convertToInteger(MutableArrayRef<integerPart> parts, in convertToInteger() argument
2735 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode, in convertToInteger()
2742 assert(dstPartsCount <= parts.size() && "Integer too big"); in convertToInteger()
2751 tcSetLeastSignificantBits(parts.data(), dstPartsCount, bits); in convertToInteger()
2753 APInt::tcShiftLeft(parts.data(), dstPartsCount, width - 1); in convertToInteger()
2834 IEEEFloat::convertFromZeroExtendedInteger(const integerPart *parts, in convertFromZeroExtendedInteger() argument
2838 APInt api = APInt(width, ArrayRef(parts, partCount)); in convertFromZeroExtendedInteger()
2841 if (isSigned && APInt::tcExtractBit(parts, width - 1)) { in convertFromZeroExtendedInteger()
2947 unsigned int parts, pow5PartCount; in roundSignificandWithExponent() local
2955 parts = partCountForBits(semantics->precision + 11); in roundSignificandWithExponent()
2960 for (;; parts *= 2) { in roundSignificandWithExponent()
2964 calcSemantics.precision = parts * integerPartWidth - 1; in roundSignificandWithExponent()
5368 SmallVector<uint64_t, 4> parts(result.getNumWords()); in convertToInteger() local
5369 opStatus status = convertToInteger(parts, bitWidth, result.isSigned(), in convertToInteger()
5372 result = APInt(bitWidth, parts); in convertToInteger()