Lines Matching refs:APFloat

46     APFloat::ExponentType maxExponent;
50 APFloat::ExponentType minExponent;
57 const fltSemantics APFloat::IEEEhalf = { 15, -14, 11 };
58 const fltSemantics APFloat::IEEEsingle = { 127, -126, 24 };
59 const fltSemantics APFloat::IEEEdouble = { 1023, -1022, 53 };
60 const fltSemantics APFloat::IEEEquad = { 16383, -16382, 113 };
61 const fltSemantics APFloat::x87DoubleExtended = { 16383, -16382, 64 };
62 const fltSemantics APFloat::Bogus = { 0, 0, 0 };
75 const fltSemantics APFloat::PPCDoubleDouble = { 1023, -1022 + 53, 53 + 53 };
296 D->exponent += static_cast<APFloat::ExponentType>((dot - p) - (dot > p)); in interpretDecimal()
298 static_cast<APFloat::ExponentType>((p - D->firstSigDigit) in interpretDecimal()
575 APFloat::initialize(const fltSemantics *ourSemantics) in initialize()
586 APFloat::freeSignificand() in freeSignificand()
593 APFloat::assign(const APFloat &rhs) in assign()
605 APFloat::copySignificand(const APFloat &rhs) in copySignificand()
617 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) in makeNaN()
660 if (semantics == &APFloat::x87DoubleExtended) in makeNaN()
664 APFloat APFloat::makeNaN(const fltSemantics &Sem, bool SNaN, bool Negative, in makeNaN()
666 APFloat value(Sem, uninitialized); in makeNaN()
671 APFloat &
672 APFloat::operator=(const APFloat &rhs) in operator =()
685 APFloat &
686 APFloat::operator=(APFloat &&rhs) { in operator =()
700 APFloat::isDenormal() const { in isDenormal()
707 APFloat::isSmallest() const { in isSmallest()
715 bool APFloat::isSignificandAllOnes() const { in isSignificandAllOnes()
737 bool APFloat::isSignificandAllZeros() const { in isSignificandAllZeros()
760 APFloat::isLargest() const { in isLargest()
768 APFloat::bitwiseIsEqual(const APFloat &rhs) const { in bitwiseIsEqual()
791 APFloat::APFloat(const fltSemantics &ourSemantics, integerPart value) { in APFloat() function in APFloat
801 APFloat::APFloat(const fltSemantics &ourSemantics) { in APFloat() function in APFloat
807 APFloat::APFloat(const fltSemantics &ourSemantics, uninitializedTag tag) { in APFloat() function in APFloat
812 APFloat::APFloat(const fltSemantics &ourSemantics, StringRef text) { in APFloat() function in APFloat
817 APFloat::APFloat(const APFloat &rhs) { in APFloat() function in APFloat
822 APFloat::APFloat(APFloat &&rhs) : semantics(&Bogus) { in APFloat() function in APFloat
826 APFloat::~APFloat() in ~APFloat()
832 void APFloat::Profile(FoldingSetNodeID& ID) const { in Profile()
837 APFloat::partCount() const in partCount()
843 APFloat::semanticsPrecision(const fltSemantics &semantics) in semanticsPrecision()
849 APFloat::significandParts() const in significandParts()
851 return const_cast<APFloat *>(this)->significandParts(); in significandParts()
855 APFloat::significandParts() in significandParts()
864 APFloat::zeroSignificand() in zeroSignificand()
871 APFloat::incrementSignificand() in incrementSignificand()
884 APFloat::addSignificand(const APFloat &rhs) in addSignificand()
899 APFloat::subtractSignificand(const APFloat &rhs, integerPart borrow) in subtractSignificand()
916 APFloat::multiplySignificand(const APFloat &rhs, const APFloat *addend) in multiplySignificand()
990 APFloat extendedAddend(*addend); in multiplySignificand()
1046 APFloat::divideSignificand(const APFloat &rhs) in divideSignificand()
1130 APFloat::significandMSB() const in significandMSB()
1136 APFloat::significandLSB() const in significandLSB()
1143 APFloat::shiftSignificandRight(unsigned int bits) in shiftSignificandRight()
1155 APFloat::shiftSignificandLeft(unsigned int bits) in shiftSignificandLeft()
1169 APFloat::cmpResult
1170 APFloat::compareAbsoluteValue(const APFloat &rhs) const in compareAbsoluteValue()
1196 APFloat::opStatus
1197 APFloat::handleOverflow(roundingMode rounding_mode) in handleOverflow()
1223 APFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero()
1259 APFloat::opStatus
1260 APFloat::normalize(roundingMode rounding_mode, in normalize()
1367 APFloat::opStatus
1368 APFloat::addOrSubtractSpecials(const APFloat &rhs, bool subtract) in addOrSubtractSpecials()
1425 APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract) in addOrSubtractSignificand()
1440 APFloat temp_rhs(rhs); in addOrSubtractSignificand()
1479 APFloat temp_rhs(rhs); in addOrSubtractSignificand()
1496 APFloat::opStatus
1497 APFloat::multiplySpecials(const APFloat &rhs) in multiplySpecials()
1540 APFloat::opStatus
1541 APFloat::divideSpecials(const APFloat &rhs) in divideSpecials()
1581 APFloat::opStatus
1582 APFloat::modSpecials(const APFloat &rhs) in modSpecials()
1620 APFloat::changeSign() in changeSign()
1627 APFloat::clearSign() in clearSign()
1634 APFloat::copySign(const APFloat &rhs) in copySign()
1641 APFloat::opStatus
1642 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode, in addOrSubtract()
1672 APFloat::opStatus
1673 APFloat::add(const APFloat &rhs, roundingMode rounding_mode) in add()
1679 APFloat::opStatus
1680 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode) in subtract()
1686 APFloat::opStatus
1687 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode) in multiply()
1705 APFloat::opStatus
1706 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode) in divide()
1724 APFloat::opStatus
1725 APFloat::remainder(const APFloat &rhs) in remainder()
1728 APFloat V = *this; in remainder()
1761 APFloat::opStatus
1762 APFloat::mod(const APFloat &rhs, roundingMode rounding_mode) in mod()
1768 APFloat V = *this; in mod()
1801 APFloat::opStatus
1802 APFloat::fusedMultiplyAdd(const APFloat &multiplicand, in fusedMultiplyAdd()
1803 const APFloat &addend, in fusedMultiplyAdd()
1846 APFloat::opStatus APFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral()
1863 APFloat MagicConstant(*semantics); in roundToIntegral()
1889 APFloat::cmpResult
1890 APFloat::compare(const APFloat &rhs) const in compare()
1968 APFloat::opStatus
1969 APFloat::convert(const fltSemantics &toSemantics, in convert()
1984 if (&fromSemantics == &APFloat::x87DoubleExtended && in convert()
1985 &toSemantics != &APFloat::x87DoubleExtended && category == fcNaN && in convert()
2049 if (!X86SpecialNan && semantics == &APFloat::x87DoubleExtended) in convert()
2075 APFloat::opStatus
2076 APFloat::convertToSignExtendedInteger(integerPart *parts, unsigned int width, in convertToSignExtendedInteger()
2187 APFloat::opStatus
2188 APFloat::convertToInteger(integerPart *parts, unsigned int width, in convertToInteger()
2221 APFloat::opStatus
2222 APFloat::convertToInteger(APSInt &result, in convertToInteger()
2237 APFloat::opStatus
2238 APFloat::convertFromUnsignedParts(const integerPart *src, in convertFromUnsignedParts()
2268 APFloat::opStatus
2269 APFloat::convertFromAPInt(const APInt &Val, in convertFromAPInt()
2288 APFloat::opStatus
2289 APFloat::convertFromSignExtendedInteger(const integerPart *src, in convertFromSignExtendedInteger()
2316 APFloat::opStatus
2317 APFloat::convertFromZeroExtendedInteger(const integerPart *parts, in convertFromZeroExtendedInteger()
2333 APFloat::opStatus
2334 APFloat::convertFromHexadecimalString(StringRef s, roundingMode rounding_mode) in convertFromHexadecimalString()
2413 APFloat::opStatus
2414 APFloat::roundSignificandWithExponent(const integerPart *decSigParts, in roundSignificandWithExponent()
2439 APFloat decSig = APFloat::getZero(calcSemantics, sign); in roundSignificandWithExponent()
2440 APFloat pow5(calcSemantics); in roundSignificandWithExponent()
2498 APFloat::opStatus
2499 APFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode) in convertFromDecimalString()
2617 APFloat::convertFromStringSpecials(StringRef str) { in convertFromStringSpecials()
2641 APFloat::opStatus
2642 APFloat::convertFromString(StringRef str, roundingMode rounding_mode) in convertFromString()
2694 APFloat::convertToHexString(char *dst, unsigned int hexDigits, in convertToHexString()
2742 APFloat::convertNormalToHexString(char *dst, unsigned int hexDigits, in convertNormalToHexString()
2845 hash_code llvm::hash_value(const APFloat &Arg) { in hash_value()
2870 APFloat::convertF80LongDoubleAPFloatToAPInt() const in convertF80LongDoubleAPFloatToAPInt()
2902 APFloat::convertPPCDoubleDoubleAPFloatToAPInt() const in convertPPCDoubleDoubleAPFloatToAPInt()
2919 APFloat extended(*this); in convertPPCDoubleDoubleAPFloatToAPInt()
2924 APFloat u(extended); in convertPPCDoubleDoubleAPFloatToAPInt()
2939 APFloat v(extended); in convertPPCDoubleDoubleAPFloatToAPInt()
2953 APFloat::convertQuadrupleAPFloatToAPInt() const in convertQuadrupleAPFloatToAPInt()
2989 APFloat::convertDoubleAPFloatToAPInt() const in convertDoubleAPFloatToAPInt()
3019 APFloat::convertFloatAPFloatToAPInt() const in convertFloatAPFloatToAPInt()
3048 APFloat::convertHalfAPFloatToAPInt() const in convertHalfAPFloatToAPInt()
3081 APFloat::bitcastToAPInt() const in bitcastToAPInt()
3104 APFloat::convertToFloat() const in convertToFloat()
3113 APFloat::convertToDouble() const in convertToDouble()
3129 APFloat::initFromF80LongDoubleAPInt(const APInt &api) in initFromF80LongDoubleAPInt()
3137 initialize(&APFloat::x87DoubleExtended); in initFromF80LongDoubleAPInt()
3163 APFloat::initFromPPCDoubleDoubleAPInt(const APInt &api) in initFromPPCDoubleDoubleAPInt()
3179 APFloat v(IEEEdouble, APInt(64, i2)); in initFromPPCDoubleDoubleAPInt()
3189 APFloat::initFromQuadrupleAPInt(const APInt &api) in initFromQuadrupleAPInt()
3198 initialize(&APFloat::IEEEquad); in initFromQuadrupleAPInt()
3229 APFloat::initFromDoubleAPInt(const APInt &api) in initFromDoubleAPInt()
3236 initialize(&APFloat::IEEEdouble); in initFromDoubleAPInt()
3262 APFloat::initFromFloatAPInt(const APInt & api) in initFromFloatAPInt()
3269 initialize(&APFloat::IEEEsingle); in initFromFloatAPInt()
3295 APFloat::initFromHalfAPInt(const APInt & api) in initFromHalfAPInt()
3302 initialize(&APFloat::IEEEhalf); in initFromHalfAPInt()
3332 APFloat::initFromAPInt(const fltSemantics* Sem, const APInt& api) in initFromAPInt()
3350 APFloat
3351 APFloat::getAllOnesValue(unsigned BitWidth, bool isIEEE) in getAllOnesValue()
3355 return APFloat(IEEEhalf, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3357 return APFloat(IEEEsingle, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3359 return APFloat(IEEEdouble, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3361 return APFloat(x87DoubleExtended, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3364 return APFloat(IEEEquad, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3365 return APFloat(PPCDoubleDouble, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3373 void APFloat::makeLargest(bool Negative) { in makeLargest()
3398 void APFloat::makeSmallest(bool Negative) { in makeSmallest()
3410 APFloat APFloat::getLargest(const fltSemantics &Sem, bool Negative) { in getLargest()
3415 APFloat Val(Sem, uninitialized); in getLargest()
3420 APFloat APFloat::getSmallest(const fltSemantics &Sem, bool Negative) { in getSmallest()
3425 APFloat Val(Sem, uninitialized); in getSmallest()
3430 APFloat APFloat::getSmallestNormalized(const fltSemantics &Sem, bool Negative) { in getSmallestNormalized()
3431 APFloat Val(Sem, uninitialized); in getSmallestNormalized()
3448 APFloat::APFloat(const fltSemantics &Sem, const APInt &API) { in APFloat() function in APFloat
3452 APFloat::APFloat(float f) { in APFloat() function in APFloat
3456 APFloat::APFloat(double d) { in APFloat() function in APFloat
3544 void APFloat::toString(SmallVectorImpl<char> &Str, in toString()
3747 bool APFloat::getExactInverse(APFloat *inv) const { in getExactInverse()
3758 APFloat reciprocal(*semantics, 1ULL); in getExactInverse()
3776 bool APFloat::isSignaling() const { in isSignaling()
3789 APFloat::opStatus APFloat::next(bool nextDown) { in next()
3906 APFloat::makeInf(bool Negative) { in makeInf()
3914 APFloat::makeZero(bool Negative) { in makeZero()
3921 APFloat llvm::scalbn(APFloat X, int Exp) { in scalbn()
3929 return APFloat::getInf(X.getSemantics(), X.isNegative()); in scalbn()
3932 return APFloat::getZero(X.getSemantics(), X.isNegative()); in scalbn()