LLVM 20.0.0git
|
#include "llvm/ADT/APFloat.h"
Friends | |
DoubleAPFloat | scalbn (const DoubleAPFloat &X, int Exp, roundingMode) |
DoubleAPFloat | frexp (const DoubleAPFloat &X, int &Exp, roundingMode) |
hash_code | hash_value (const DoubleAPFloat &Arg) |
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S | ) |
Definition at line 4694 of file APFloat.cpp.
References llvm::semIEEEdouble.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S, |
uninitializedTag | |||
) |
Definition at line 4700 of file APFloat.cpp.
References llvm::semIEEEdouble, and llvm::APFloatBase::uninitialized.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S, |
integerPart | I | ||
) |
Definition at line 4707 of file APFloat.cpp.
References I, and llvm::semIEEEdouble.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S, |
const APInt & | I | ||
) |
Definition at line 4713 of file APFloat.cpp.
References I, and llvm::semIEEEdouble.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S, |
APFloat && | First, | ||
APFloat && | Second | ||
) |
Definition at line 4721 of file APFloat.cpp.
References llvm::First.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const DoubleAPFloat & | RHS | ) |
Definition at line 4730 of file APFloat.cpp.
References RHS.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | DoubleAPFloat && | RHS | ) |
Definition at line 4738 of file APFloat.cpp.
References assert(), RHS, llvm::semBogus, and llvm::semPPCDoubleDouble.
APFloat::opStatus llvm::detail::DoubleAPFloat::add | ( | const DoubleAPFloat & | RHS, |
roundingMode | RM | ||
) |
APInt llvm::detail::DoubleAPFloat::bitcastToAPInt | ( | ) | const |
Definition at line 5118 of file APFloat.cpp.
References assert(), llvm::Data, and llvm::semPPCDoubleDouble.
Referenced by convertToHexString(), convertToInteger(), divide(), fusedMultiplyAdd(), getExactInverse(), mod(), next(), remainder(), roundToIntegral(), and toString().
bool llvm::detail::DoubleAPFloat::bitwiseIsEqual | ( | const DoubleAPFloat & | RHS | ) | const |
Definition at line 5107 of file APFloat.cpp.
References RHS.
void llvm::detail::DoubleAPFloat::changeSign | ( | ) |
Definition at line 5030 of file APFloat.cpp.
Referenced by makeLargest(), and subtract().
APFloat::cmpResult llvm::detail::DoubleAPFloat::compare | ( | const DoubleAPFloat & | RHS | ) | const |
Definition at line 5099 of file APFloat.cpp.
References llvm::APFloatBase::cmpEqual, and RHS.
Referenced by isLargest(), isSmallest(), and isSmallestNormalized().
APFloat::cmpResult llvm::detail::DoubleAPFloat::compareAbsoluteValue | ( | const DoubleAPFloat & | RHS | ) | const |
Definition at line 5036 of file APFloat.cpp.
References llvm::APFloatBase::cmpEqual, llvm::APFloatBase::cmpGreaterThan, llvm::APFloatBase::cmpLessThan, and RHS.
APFloat::opStatus llvm::detail::DoubleAPFloat::convertFromAPInt | ( | const APInt & | Input, |
bool | IsSigned, | ||
roundingMode | RM | ||
) |
Definition at line 5153 of file APFloat.cpp.
References assert(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::convertFromAPInt(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::opStatus llvm::detail::DoubleAPFloat::convertFromSignExtendedInteger | ( | const integerPart * | Input, |
unsigned int | InputSize, | ||
bool | IsSigned, | ||
roundingMode | RM | ||
) |
Definition at line 5164 of file APFloat.cpp.
References assert(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::convertFromSignExtendedInteger(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
Expected< APFloat::opStatus > llvm::detail::DoubleAPFloat::convertFromString | ( | StringRef | S, |
roundingMode | RM | ||
) |
Definition at line 5127 of file APFloat.cpp.
References assert(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::convertFromString(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::opStatus llvm::detail::DoubleAPFloat::convertFromZeroExtendedInteger | ( | const integerPart * | Input, |
unsigned int | InputSize, | ||
bool | IsSigned, | ||
roundingMode | RM | ||
) |
Definition at line 5175 of file APFloat.cpp.
References assert(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::convertFromZeroExtendedInteger(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
unsigned int llvm::detail::DoubleAPFloat::convertToHexString | ( | char * | DST, |
unsigned int | HexDigits, | ||
bool | UpperCase, | ||
roundingMode | RM | ||
) | const |
Definition at line 5185 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::convertToHexString(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::opStatus llvm::detail::DoubleAPFloat::convertToInteger | ( | MutableArrayRef< integerPart > | Input, |
unsigned int | Width, | ||
bool | IsSigned, | ||
roundingMode | RM, | ||
bool * | IsExact | ||
) | const |
Definition at line 5145 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::convertToInteger(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::opStatus llvm::detail::DoubleAPFloat::divide | ( | const DoubleAPFloat & | RHS, |
APFloat::roundingMode | RM | ||
) |
Definition at line 4982 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::divide(), RHS, llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::opStatus llvm::detail::DoubleAPFloat::fusedMultiplyAdd | ( | const DoubleAPFloat & | Multiplicand, |
const DoubleAPFloat & | Addend, | ||
APFloat::roundingMode | RM | ||
) |
Definition at line 5010 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::fusedMultiplyAdd(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::fltCategory llvm::detail::DoubleAPFloat::getCategory | ( | ) | const |
Definition at line 5056 of file APFloat.cpp.
Referenced by llvm::detail::frexp(), isDenormal(), isLargest(), isSmallest(), and isSmallestNormalized().
Definition at line 5240 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::getExactInverse(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
int llvm::detail::DoubleAPFloat::getExactLog2 | ( | ) | const |
Definition at line 5251 of file APFloat.cpp.
int llvm::detail::DoubleAPFloat::getExactLog2Abs | ( | ) | const |
Definition at line 5256 of file APFloat.cpp.
|
inline |
|
inline |
bool llvm::detail::DoubleAPFloat::isDenormal | ( | ) | const |
Definition at line 5194 of file APFloat.cpp.
References llvm::APFloatBase::fcNormal, and getCategory().
bool llvm::detail::DoubleAPFloat::isInteger | ( | ) | const |
Definition at line 5226 of file APFloat.cpp.
References assert(), and llvm::semPPCDoubleDouble.
bool llvm::detail::DoubleAPFloat::isLargest | ( | ) | const |
Definition at line 5218 of file APFloat.cpp.
References llvm::APFloatBase::cmpEqual, compare(), llvm::APFloatBase::fcNormal, getCategory(), isNegative(), and makeLargest().
bool llvm::detail::DoubleAPFloat::isNegative | ( | ) | const |
Definition at line 5060 of file APFloat.cpp.
Referenced by isLargest(), isSmallest(), and isSmallestNormalized().
bool llvm::detail::DoubleAPFloat::isSmallest | ( | ) | const |
Definition at line 5201 of file APFloat.cpp.
References llvm::APFloatBase::cmpEqual, compare(), llvm::APFloatBase::fcNormal, getCategory(), isNegative(), and makeSmallest().
bool llvm::detail::DoubleAPFloat::isSmallestNormalized | ( | ) | const |
Definition at line 5209 of file APFloat.cpp.
References llvm::APFloatBase::cmpEqual, compare(), llvm::APFloatBase::fcNormal, getCategory(), isNegative(), and makeSmallestNormalized().
void llvm::detail::DoubleAPFloat::makeInf | ( | bool | Neg | ) |
Definition at line 5062 of file APFloat.cpp.
void llvm::detail::DoubleAPFloat::makeLargest | ( | bool | Neg | ) |
Definition at line 5072 of file APFloat.cpp.
References assert(), changeSign(), llvm::semIEEEdouble, and llvm::semPPCDoubleDouble.
Referenced by isLargest().
Definition at line 5094 of file APFloat.cpp.
void llvm::detail::DoubleAPFloat::makeSmallest | ( | bool | Neg | ) |
Definition at line 5080 of file APFloat.cpp.
References assert(), and llvm::semPPCDoubleDouble.
Referenced by isSmallest().
void llvm::detail::DoubleAPFloat::makeSmallestNormalized | ( | bool | Neg | ) |
Definition at line 5086 of file APFloat.cpp.
References assert(), llvm::semIEEEdouble, and llvm::semPPCDoubleDouble.
Referenced by isSmallestNormalized().
void llvm::detail::DoubleAPFloat::makeZero | ( | bool | Neg | ) |
Definition at line 5067 of file APFloat.cpp.
APFloat::opStatus llvm::detail::DoubleAPFloat::mod | ( | const DoubleAPFloat & | RHS | ) |
Definition at line 5001 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::mod(), RHS, llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::opStatus llvm::detail::DoubleAPFloat::multiply | ( | const DoubleAPFloat & | RHS, |
APFloat::roundingMode | RM | ||
) |
Definition at line 4896 of file APFloat.cpp.
References A, llvm::APFloat::add(), assert(), B, llvm::CallingConv::C, D, llvm::APFloatBase::fcInfinity, llvm::APFloatBase::fcNaN, llvm::APFloatBase::fcNormal, llvm::APFloatBase::fcZero, llvm::APFloat::fusedMultiplyAdd(), LHS, llvm::APFloatBase::opOK, and RHS.
|
inline |
APFloat::opStatus llvm::detail::DoubleAPFloat::next | ( | bool | nextDown | ) |
Definition at line 5136 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::next(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
DoubleAPFloat & llvm::detail::DoubleAPFloat::operator= | ( | const DoubleAPFloat & | RHS | ) |
Definition at line 4744 of file APFloat.cpp.
References RHS.
|
inline |
APFloat::opStatus llvm::detail::DoubleAPFloat::remainder | ( | const DoubleAPFloat & | RHS | ) |
Definition at line 4992 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::remainder(), RHS, llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::opStatus llvm::detail::DoubleAPFloat::roundToIntegral | ( | APFloat::roundingMode | RM | ) |
Definition at line 5022 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::roundToIntegral(), llvm::semPPCDoubleDouble, and llvm::semPPCDoubleDoubleLegacy.
APFloat::opStatus llvm::detail::DoubleAPFloat::subtract | ( | const DoubleAPFloat & | RHS, |
roundingMode | RM | ||
) |
Definition at line 4888 of file APFloat.cpp.
References add(), changeSign(), and RHS.
void llvm::detail::DoubleAPFloat::toString | ( | SmallVectorImpl< char > & | Str, |
unsigned | FormatPrecision, | ||
unsigned | FormatMaxPadding, | ||
bool | TruncateZero = true |
||
) | const |
Definition at line 5231 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::semPPCDoubleDouble, llvm::semPPCDoubleDoubleLegacy, and llvm::APFloat::toString().
|
friend |
|
friend |
Definition at line 5112 of file APFloat.cpp.
|
friend |