• Home
  • Raw
  • Download

Lines Matching refs:semantics

120 assertArithmeticOK(const llvm::fltSemantics &semantics) {  in assertArithmeticOK()  argument
121 assert(semantics.arithmeticOK && in assertArithmeticOK()
592 semantics = ourSemantics; in initialize()
608 assert(semantics == rhs.semantics); in assign()
648 unsigned bitsToPreserve = semantics->precision - 1; in makeNaN()
656 unsigned QNaNBit = semantics->precision - 2; in makeNaN()
675 if (semantics == &APFloat::x87DoubleExtended) in makeNaN()
690 if (semantics != rhs.semantics) { in operator =()
692 initialize(rhs.semantics); in operator =()
704 if (semantics != rhs.semantics || in bitwiseIsEqual()
708 if (semantics==(const llvm::fltSemantics*)&PPCDoubleDouble && in bitwiseIsEqual()
715 else if (semantics==(const llvm::fltSemantics*)&PPCDoubleDouble && in bitwiseIsEqual()
776 initialize(rhs.semantics); in APFloat()
793 return partCountForBits(semantics->precision + 1); in partCount()
797 APFloat::semanticsPrecision(const fltSemantics &semantics) in semanticsPrecision() argument
799 return semantics.precision; in semanticsPrecision()
847 assert(semantics == rhs.semantics); in addSignificand()
862 assert(semantics == rhs.semantics); in subtractSignificand()
883 assert(semantics == rhs.semantics); in multiplySignificand()
885 precision = semantics->precision; in multiplySignificand()
905 const fltSemantics *savedSemantics = semantics; in multiplySignificand()
919 extendedSemantics = *semantics; in multiplySignificand()
926 semantics = &extendedSemantics; in multiplySignificand()
938 semantics = savedSemantics; in multiplySignificand()
974 assert(semantics == rhs.semantics); in divideSignificand()
996 unsigned int precision = semantics->precision; in divideSignificand()
1077 assert(bits < semantics->precision); in shiftSignificandLeft()
1094 assert(semantics == rhs.semantics); in compareAbsoluteValue()
1130 exponent = semantics->maxExponent; in handleOverflow()
1132 semantics->precision); in handleOverflow()
1196 exponentChange = omsb - semantics->precision; in normalize()
1200 if (exponent + exponentChange > semantics->maxExponent) in normalize()
1205 if (exponent + exponentChange < semantics->minExponent) in normalize()
1206 exponentChange = semantics->minExponent - exponent; in normalize()
1249 exponent = semantics->minExponent; in normalize()
1255 if (omsb == (unsigned) semantics->precision + 1) { in normalize()
1259 if (exponent == semantics->maxExponent) { in normalize()
1273 if (omsb == semantics->precision) in normalize()
1277 assert(omsb < semantics->precision); in normalize()
1562 assertArithmeticOK(*semantics); in addOrSubtract()
1608 assertArithmeticOK(*semantics); in multiply()
1628 assertArithmeticOK(*semantics); in divide()
1650 assertArithmeticOK(*semantics); in remainder()
1685 assertArithmeticOK(*semantics); in mod()
1729 assertArithmeticOK(*semantics); in fusedMultiplyAdd()
1774 assertArithmeticOK(*semantics); in compare()
1775 assert(semantics == rhs.semantics); in compare()
1857 const fltSemantics &fromSemantics = *semantics; in convert()
1900 semantics = &toSemantics; in convert()
1945 assertArithmeticOK(*semantics); in convertToSignExtendedInteger()
1971 truncatedBits = semantics->precision -1U - exponent; in convertToSignExtendedInteger()
1981 if (bits < semantics->precision) { in convertToSignExtendedInteger()
1983 truncatedBits = semantics->precision - bits; in convertToSignExtendedInteger()
1987 APInt::tcExtract(parts, dstPartsCount, src, semantics->precision, 0); in convertToSignExtendedInteger()
1988 APInt::tcShiftLeft(parts, dstPartsCount, bits - semantics->precision); in convertToSignExtendedInteger()
2108 assertArithmeticOK(*semantics); in convertFromUnsignedParts()
2113 precision = semantics->precision; in convertFromUnsignedParts()
2159 assertArithmeticOK(*semantics); in convertFromSignExtendedInteger()
2277 expAdjustment += semantics->precision; in convertFromHexadecimalString()
2300 parts = partCountForBits(semantics->precision + 11); in roundSignificandWithExponent()
2310 excessPrecision = calcSemantics.precision - semantics->precision; in roundSignificandWithExponent()
2334 if (decSig.exponent < semantics->minExponent) { in roundSignificandWithExponent()
2335 excessPrecision += (semantics->minExponent - decSig.exponent); in roundSignificandWithExponent()
2362 exponent = (decSig.exponent + semantics->precision in roundSignificandWithExponent()
2414 8651 * (semantics->minExponent - (int) semantics->precision)) { in convertFromDecimalString()
2421 >= 12655 * semantics->maxExponent) { in convertFromDecimalString()
2485 assertArithmeticOK(*semantics); in convertFromString()
2537 assertArithmeticOK(*semantics); in convertToHexString()
2603 valueBits = semantics->precision + 3; in convertNormalToHexString()
2690 Arg.semantics->precision); in hash_value()
2694 Arg.semantics->precision, Arg.exponent, in hash_value()
2712 assert(semantics == (const llvm::fltSemantics*)&x87DoubleExtended); in convertF80LongDoubleAPFloatToAPInt()
2744 assert(semantics == (const llvm::fltSemantics*)&PPCDoubleDouble); in convertPPCDoubleDoubleAPFloatToAPInt()
2789 assert(semantics == (const llvm::fltSemantics*)&IEEEquad); in convertQuadrupleAPFloatToAPInt()
2825 assert(semantics == (const llvm::fltSemantics*)&IEEEdouble); in convertDoubleAPFloatToAPInt()
2855 assert(semantics == (const llvm::fltSemantics*)&IEEEsingle); in convertFloatAPFloatToAPInt()
2884 assert(semantics == (const llvm::fltSemantics*)&IEEEhalf); in convertHalfAPFloatToAPInt()
2917 if (semantics == (const llvm::fltSemantics*)&IEEEhalf) in bitcastToAPInt()
2920 if (semantics == (const llvm::fltSemantics*)&IEEEsingle) in bitcastToAPInt()
2923 if (semantics == (const llvm::fltSemantics*)&IEEEdouble) in bitcastToAPInt()
2926 if (semantics == (const llvm::fltSemantics*)&IEEEquad) in bitcastToAPInt()
2929 if (semantics == (const llvm::fltSemantics*)&PPCDoubleDouble) in bitcastToAPInt()
2932 assert(semantics == (const llvm::fltSemantics*)&x87DoubleExtended && in bitcastToAPInt()
2940 assert(semantics == (const llvm::fltSemantics*)&IEEEsingle && in convertToFloat()
2949 assert(semantics == (const llvm::fltSemantics*)&IEEEdouble && in convertToDouble()
3404 int exp = exponent - ((int) semantics->precision - 1); in toString()
3405 APInt significand(semantics->precision, in toString()
3407 partCountForBits(semantics->precision))); in toString()
3416 FormatPrecision = (semantics->precision * 59 + 195) / 196; in toString()
3429 significand = significand.zext(semantics->precision + exp); in toString()
3444 unsigned precision = semantics->precision + (137 * texp + 136) / 59; in toString()
3576 if (semantics != &IEEEhalf && semantics != &IEEEsingle && in getExactInverse()
3577 semantics != &IEEEdouble && semantics != &IEEEquad) in getExactInverse()
3586 if (significandLSB() != semantics->precision - 1) in getExactInverse()
3590 APFloat reciprocal(*semantics, 1ULL); in getExactInverse()
3596 if (reciprocal.significandMSB() + 1 < reciprocal.semantics->precision) in getExactInverse()
3600 reciprocal.significandLSB() == reciprocal.semantics->precision - 1); in getExactInverse()