Lines Matching refs:APFloat
46 APFloat::ExponentType maxExponent;
50 APFloat::ExponentType minExponent;
60 const fltSemantics APFloat::IEEEhalf = { 15, -14, 11, 16 };
61 const fltSemantics APFloat::IEEEsingle = { 127, -126, 24, 32 };
62 const fltSemantics APFloat::IEEEdouble = { 1023, -1022, 53, 64 };
63 const fltSemantics APFloat::IEEEquad = { 16383, -16382, 113, 128 };
64 const fltSemantics APFloat::x87DoubleExtended = { 16383, -16382, 64, 80 };
65 const fltSemantics APFloat::Bogus = { 0, 0, 0, 0 };
78 const fltSemantics APFloat::PPCDoubleDouble = { 1023, -1022 + 53, 53 + 53, 128 };
299 D->exponent += static_cast<APFloat::ExponentType>((dot - p) - (dot > p)); in interpretDecimal()
301 static_cast<APFloat::ExponentType>((p - D->firstSigDigit) in interpretDecimal()
578 APFloat::initialize(const fltSemantics *ourSemantics) in initialize()
589 APFloat::freeSignificand() in freeSignificand()
596 APFloat::assign(const APFloat &rhs) in assign()
608 APFloat::copySignificand(const APFloat &rhs) in copySignificand()
620 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) in makeNaN()
663 if (semantics == &APFloat::x87DoubleExtended) in makeNaN()
667 APFloat APFloat::makeNaN(const fltSemantics &Sem, bool SNaN, bool Negative, in makeNaN()
669 APFloat value(Sem, uninitialized); in makeNaN()
674 APFloat &
675 APFloat::operator=(const APFloat &rhs) in operator =()
688 APFloat &
689 APFloat::operator=(APFloat &&rhs) { in operator =()
703 APFloat::isDenormal() const { in isDenormal()
710 APFloat::isSmallest() const { in isSmallest()
718 bool APFloat::isSignificandAllOnes() const { in isSignificandAllOnes()
740 bool APFloat::isSignificandAllZeros() const { in isSignificandAllZeros()
763 APFloat::isLargest() const { in isLargest()
771 APFloat::isInteger() const { in isInteger()
774 APFloat truncated = *this; in isInteger()
780 APFloat::bitwiseIsEqual(const APFloat &rhs) const { in bitwiseIsEqual()
797 APFloat::APFloat(const fltSemantics &ourSemantics, integerPart value) { in APFloat() function in APFloat
807 APFloat::APFloat(const fltSemantics &ourSemantics) { in APFloat() function in APFloat
813 APFloat::APFloat(const fltSemantics &ourSemantics, uninitializedTag tag) { in APFloat() function in APFloat
818 APFloat::APFloat(const fltSemantics &ourSemantics, StringRef text) { in APFloat() function in APFloat
823 APFloat::APFloat(const APFloat &rhs) { in APFloat() function in APFloat
828 APFloat::APFloat(APFloat &&rhs) : semantics(&Bogus) { in APFloat() function in APFloat
832 APFloat::~APFloat() in ~APFloat()
838 void APFloat::Profile(FoldingSetNodeID& ID) const { in Profile()
843 APFloat::partCount() const in partCount()
849 APFloat::semanticsPrecision(const fltSemantics &semantics) in semanticsPrecision()
853 APFloat::ExponentType
854 APFloat::semanticsMaxExponent(const fltSemantics &semantics) in semanticsMaxExponent()
858 APFloat::ExponentType
859 APFloat::semanticsMinExponent(const fltSemantics &semantics) in semanticsMinExponent()
864 APFloat::semanticsSizeInBits(const fltSemantics &semantics) in semanticsSizeInBits()
870 APFloat::significandParts() const in significandParts()
872 return const_cast<APFloat *>(this)->significandParts(); in significandParts()
876 APFloat::significandParts() in significandParts()
885 APFloat::zeroSignificand() in zeroSignificand()
892 APFloat::incrementSignificand() in incrementSignificand()
905 APFloat::addSignificand(const APFloat &rhs) in addSignificand()
920 APFloat::subtractSignificand(const APFloat &rhs, integerPart borrow) in subtractSignificand()
937 APFloat::multiplySignificand(const APFloat &rhs, const APFloat *addend) in multiplySignificand()
1011 APFloat extendedAddend(*addend); in multiplySignificand()
1067 APFloat::divideSignificand(const APFloat &rhs) in divideSignificand()
1151 APFloat::significandMSB() const in significandMSB()
1157 APFloat::significandLSB() const in significandLSB()
1164 APFloat::shiftSignificandRight(unsigned int bits) in shiftSignificandRight()
1176 APFloat::shiftSignificandLeft(unsigned int bits) in shiftSignificandLeft()
1190 APFloat::cmpResult
1191 APFloat::compareAbsoluteValue(const APFloat &rhs) const in compareAbsoluteValue()
1217 APFloat::opStatus
1218 APFloat::handleOverflow(roundingMode rounding_mode) in handleOverflow()
1244 APFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero()
1280 APFloat::opStatus
1281 APFloat::normalize(roundingMode rounding_mode, in normalize()
1388 APFloat::opStatus
1389 APFloat::addOrSubtractSpecials(const APFloat &rhs, bool subtract) in addOrSubtractSpecials()
1446 APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract) in addOrSubtractSignificand()
1461 APFloat temp_rhs(rhs); in addOrSubtractSignificand()
1500 APFloat temp_rhs(rhs); in addOrSubtractSignificand()
1517 APFloat::opStatus
1518 APFloat::multiplySpecials(const APFloat &rhs) in multiplySpecials()
1561 APFloat::opStatus
1562 APFloat::divideSpecials(const APFloat &rhs) in divideSpecials()
1602 APFloat::opStatus
1603 APFloat::modSpecials(const APFloat &rhs) in modSpecials()
1641 APFloat::changeSign() in changeSign()
1648 APFloat::clearSign() in clearSign()
1655 APFloat::copySign(const APFloat &rhs) in copySign()
1662 APFloat::opStatus
1663 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode, in addOrSubtract()
1693 APFloat::opStatus
1694 APFloat::add(const APFloat &rhs, roundingMode rounding_mode) in add()
1700 APFloat::opStatus
1701 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode) in subtract()
1707 APFloat::opStatus
1708 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode) in multiply()
1726 APFloat::opStatus
1727 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode) in divide()
1745 APFloat::opStatus
1746 APFloat::remainder(const APFloat &rhs) in remainder()
1749 APFloat V = *this; in remainder()
1782 APFloat::opStatus
1783 APFloat::mod(const APFloat &rhs) in mod()
1789 APFloat V = *this; in mod()
1822 APFloat::opStatus
1823 APFloat::fusedMultiplyAdd(const APFloat &multiplicand, in fusedMultiplyAdd()
1824 const APFloat &addend, in fusedMultiplyAdd()
1867 APFloat::opStatus APFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral()
1884 APFloat MagicConstant(*semantics); in roundToIntegral()
1910 APFloat::cmpResult
1911 APFloat::compare(const APFloat &rhs) const in compare()
1989 APFloat::opStatus
1990 APFloat::convert(const fltSemantics &toSemantics, in convert()
2005 if (&fromSemantics == &APFloat::x87DoubleExtended && in convert()
2006 &toSemantics != &APFloat::x87DoubleExtended && category == fcNaN && in convert()
2070 if (!X86SpecialNan && semantics == &APFloat::x87DoubleExtended) in convert()
2096 APFloat::opStatus
2097 APFloat::convertToSignExtendedInteger(integerPart *parts, unsigned int width, in convertToSignExtendedInteger()
2208 APFloat::opStatus
2209 APFloat::convertToInteger(integerPart *parts, unsigned int width, in convertToInteger()
2242 APFloat::opStatus
2243 APFloat::convertToInteger(APSInt &result, in convertToInteger()
2258 APFloat::opStatus
2259 APFloat::convertFromUnsignedParts(const integerPart *src, in convertFromUnsignedParts()
2289 APFloat::opStatus
2290 APFloat::convertFromAPInt(const APInt &Val, in convertFromAPInt()
2309 APFloat::opStatus
2310 APFloat::convertFromSignExtendedInteger(const integerPart *src, in convertFromSignExtendedInteger()
2337 APFloat::opStatus
2338 APFloat::convertFromZeroExtendedInteger(const integerPart *parts, in convertFromZeroExtendedInteger()
2354 APFloat::opStatus
2355 APFloat::convertFromHexadecimalString(StringRef s, roundingMode rounding_mode) in convertFromHexadecimalString()
2434 APFloat::opStatus
2435 APFloat::roundSignificandWithExponent(const integerPart *decSigParts, in roundSignificandWithExponent()
2460 APFloat decSig = APFloat::getZero(calcSemantics, sign); in roundSignificandWithExponent()
2461 APFloat pow5(calcSemantics); in roundSignificandWithExponent()
2519 APFloat::opStatus
2520 APFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode) in convertFromDecimalString()
2638 APFloat::convertFromStringSpecials(StringRef str) { in convertFromStringSpecials()
2662 APFloat::opStatus
2663 APFloat::convertFromString(StringRef str, roundingMode rounding_mode) in convertFromString()
2715 APFloat::convertToHexString(char *dst, unsigned int hexDigits, in convertToHexString()
2763 APFloat::convertNormalToHexString(char *dst, unsigned int hexDigits, in convertNormalToHexString()
2866 hash_code llvm::hash_value(const APFloat &Arg) { in hash_value()
2891 APFloat::convertF80LongDoubleAPFloatToAPInt() const in convertF80LongDoubleAPFloatToAPInt()
2923 APFloat::convertPPCDoubleDoubleAPFloatToAPInt() const in convertPPCDoubleDoubleAPFloatToAPInt()
2940 APFloat extended(*this); in convertPPCDoubleDoubleAPFloatToAPInt()
2945 APFloat u(extended); in convertPPCDoubleDoubleAPFloatToAPInt()
2960 APFloat v(extended); in convertPPCDoubleDoubleAPFloatToAPInt()
2974 APFloat::convertQuadrupleAPFloatToAPInt() const in convertQuadrupleAPFloatToAPInt()
3010 APFloat::convertDoubleAPFloatToAPInt() const in convertDoubleAPFloatToAPInt()
3040 APFloat::convertFloatAPFloatToAPInt() const in convertFloatAPFloatToAPInt()
3069 APFloat::convertHalfAPFloatToAPInt() const in convertHalfAPFloatToAPInt()
3102 APFloat::bitcastToAPInt() const in bitcastToAPInt()
3125 APFloat::convertToFloat() const in convertToFloat()
3134 APFloat::convertToDouble() const in convertToDouble()
3150 APFloat::initFromF80LongDoubleAPInt(const APInt &api) in initFromF80LongDoubleAPInt()
3158 initialize(&APFloat::x87DoubleExtended); in initFromF80LongDoubleAPInt()
3184 APFloat::initFromPPCDoubleDoubleAPInt(const APInt &api) in initFromPPCDoubleDoubleAPInt()
3200 APFloat v(IEEEdouble, APInt(64, i2)); in initFromPPCDoubleDoubleAPInt()
3210 APFloat::initFromQuadrupleAPInt(const APInt &api) in initFromQuadrupleAPInt()
3219 initialize(&APFloat::IEEEquad); in initFromQuadrupleAPInt()
3250 APFloat::initFromDoubleAPInt(const APInt &api) in initFromDoubleAPInt()
3257 initialize(&APFloat::IEEEdouble); in initFromDoubleAPInt()
3283 APFloat::initFromFloatAPInt(const APInt & api) in initFromFloatAPInt()
3290 initialize(&APFloat::IEEEsingle); in initFromFloatAPInt()
3316 APFloat::initFromHalfAPInt(const APInt & api) in initFromHalfAPInt()
3323 initialize(&APFloat::IEEEhalf); in initFromHalfAPInt()
3353 APFloat::initFromAPInt(const fltSemantics* Sem, const APInt& api) in initFromAPInt()
3371 APFloat
3372 APFloat::getAllOnesValue(unsigned BitWidth, bool isIEEE) in getAllOnesValue()
3376 return APFloat(IEEEhalf, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3378 return APFloat(IEEEsingle, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3380 return APFloat(IEEEdouble, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3382 return APFloat(x87DoubleExtended, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3385 return APFloat(IEEEquad, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3386 return APFloat(PPCDoubleDouble, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
3392 unsigned APFloat::getSizeInBits(const fltSemantics &Sem) { in getSizeInBits()
3398 void APFloat::makeLargest(bool Negative) { in makeLargest()
3423 void APFloat::makeSmallest(bool Negative) { in makeSmallest()
3435 APFloat APFloat::getLargest(const fltSemantics &Sem, bool Negative) { in getLargest()
3440 APFloat Val(Sem, uninitialized); in getLargest()
3445 APFloat APFloat::getSmallest(const fltSemantics &Sem, bool Negative) { in getSmallest()
3450 APFloat Val(Sem, uninitialized); in getSmallest()
3455 APFloat APFloat::getSmallestNormalized(const fltSemantics &Sem, bool Negative) { in getSmallestNormalized()
3456 APFloat Val(Sem, uninitialized); in getSmallestNormalized()
3473 APFloat::APFloat(const fltSemantics &Sem, const APInt &API) { in APFloat() function in APFloat
3477 APFloat::APFloat(float f) { in APFloat() function in APFloat
3481 APFloat::APFloat(double d) { in APFloat() function in APFloat
3569 void APFloat::toString(SmallVectorImpl<char> &Str, in toString()
3772 bool APFloat::getExactInverse(APFloat *inv) const { in getExactInverse()
3783 APFloat reciprocal(*semantics, 1ULL); in getExactInverse()
3801 bool APFloat::isSignaling() const { in isSignaling()
3814 APFloat::opStatus APFloat::next(bool nextDown) { in next()
3931 APFloat::makeInf(bool Negative) { in makeInf()
3939 APFloat::makeZero(bool Negative) { in makeZero()
3946 APFloat llvm::scalbn(APFloat X, int Exp) { in scalbn()
3954 return APFloat::getInf(X.getSemantics(), X.isNegative()); in scalbn()
3957 return APFloat::getZero(X.getSemantics(), X.isNegative()); in scalbn()