Lines Matching refs:parts
492 lostFractionThroughTruncation(const APFloatBase::integerPart *parts, in lostFractionThroughTruncation() argument
498 lsb = APInt::tcLSB(parts, partCount); in lostFractionThroughTruncation()
506 APInt::tcExtractBit(parts, bits - 1)) in lostFractionThroughTruncation()
514 shiftRight(APFloatBase::integerPart *dst, unsigned int parts, unsigned int bits) in shiftRight() argument
518 lost_fraction = lostFractionThroughTruncation(dst, parts, bits); in shiftRight()
520 APInt::tcShiftRight(dst, parts, bits); in shiftRight()
562 ulpsFromBoundary(const APFloatBase::integerPart *parts, unsigned int bits, in ulpsFromBoundary() argument
573 …part = parts[count] & (~(APFloatBase::integerPart) 0 >> (APFloatBase::integerPartWidth - partBits)… in ulpsFromBoundary()
589 if (parts[count]) in ulpsFromBoundary()
592 return parts[0]; in ulpsFromBoundary()
595 if (~parts[count]) in ulpsFromBoundary()
598 return -parts[0]; in ulpsFromBoundary()
733 significand.parts = new integerPart[count]; in initialize()
738 delete [] significand.parts; in freeSignificand()
966 return significand.parts; in significandParts()
988 integerPart *parts; in addSignificand() local
990 parts = significandParts(); in addSignificand()
995 return APInt::tcAdd(parts, rhs.significandParts(), 0, partCount()); in addSignificand()
1002 integerPart *parts; in subtractSignificand() local
1004 parts = significandParts(); in subtractSignificand()
1009 return APInt::tcSubtract(parts, rhs.significandParts(), borrow, in subtractSignificand()
1087 significand.parts = fullSignificand; in multiplySignificand()
1293 static void tcSetLeastSignificantBits(APInt::WordType *dst, unsigned parts, in tcSetLeastSignificantBits() argument
1304 while (i < parts) in tcSetLeastSignificantBits()
2248 significand.parts = newParts; in convert()
2305 MutableArrayRef<integerPart> parts, unsigned int width, bool isSigned, in convertToSignExtendedInteger() argument
2318 assert(dstPartsCount <= parts.size() && "Integer too big"); in convertToSignExtendedInteger()
2321 APInt::tcSet(parts.data(), 0, dstPartsCount); in convertToSignExtendedInteger()
2333 APInt::tcSet(parts.data(), 0, dstPartsCount); in convertToSignExtendedInteger()
2349 APInt::tcExtract(parts.data(), dstPartsCount, src, bits, truncatedBits); in convertToSignExtendedInteger()
2352 APInt::tcExtract(parts.data(), dstPartsCount, src, semantics->precision, in convertToSignExtendedInteger()
2354 APInt::tcShiftLeft(parts.data(), dstPartsCount, in convertToSignExtendedInteger()
2367 if (APInt::tcIncrement(parts.data(), dstPartsCount)) in convertToSignExtendedInteger()
2375 unsigned int omsb = APInt::tcMSB(parts.data(), dstPartsCount) + 1; in convertToSignExtendedInteger()
2387 APInt::tcLSB(parts.data(), dstPartsCount) + 1 != omsb) in convertToSignExtendedInteger()
2395 APInt::tcNegate (parts.data(), dstPartsCount); in convertToSignExtendedInteger()
2418 IEEEFloat::convertToInteger(MutableArrayRef<integerPart> parts, in convertToInteger() argument
2423 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode, in convertToInteger()
2430 assert(dstPartsCount <= parts.size() && "Integer too big"); in convertToInteger()
2439 tcSetLeastSignificantBits(parts.data(), dstPartsCount, bits); in convertToInteger()
2441 APInt::tcShiftLeft(parts.data(), dstPartsCount, width - 1); in convertToInteger()
2522 IEEEFloat::convertFromZeroExtendedInteger(const integerPart *parts, in convertFromZeroExtendedInteger() argument
2526 APInt api = APInt(width, makeArrayRef(parts, partCount)); in convertFromZeroExtendedInteger()
2529 if (isSigned && APInt::tcExtractBit(parts, width - 1)) { in convertFromZeroExtendedInteger()
2635 unsigned int parts, pow5PartCount; in roundSignificandWithExponent() local
2643 parts = partCountForBits(semantics->precision + 11); in roundSignificandWithExponent()
2648 for (;; parts *= 2) { in roundSignificandWithExponent()
2652 calcSemantics.precision = parts * integerPartWidth - 1; in roundSignificandWithExponent()
4894 SmallVector<uint64_t, 4> parts(result.getNumWords()); in convertToInteger() local
4895 opStatus status = convertToInteger(parts, bitWidth, result.isSigned(), in convertToInteger()
4898 result = APInt(bitWidth, parts); in convertToInteger()