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 4703 of file APFloat.cpp.
References llvm::semIEEEdouble.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S, |
uninitializedTag | |||
) |
Definition at line 4709 of file APFloat.cpp.
References llvm::semIEEEdouble, and llvm::APFloatBase::uninitialized.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S, |
integerPart | I | ||
) |
Definition at line 4716 of file APFloat.cpp.
References I, and llvm::semIEEEdouble.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S, |
const APInt & | I | ||
) |
Definition at line 4722 of file APFloat.cpp.
References I, and llvm::semIEEEdouble.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const fltSemantics & | S, |
APFloat && | First, | ||
APFloat && | Second | ||
) |
Definition at line 4730 of file APFloat.cpp.
References llvm::First.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | const DoubleAPFloat & | RHS | ) |
Definition at line 4739 of file APFloat.cpp.
References RHS.
llvm::detail::DoubleAPFloat::DoubleAPFloat | ( | DoubleAPFloat && | RHS | ) |
Definition at line 4747 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 5127 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 5116 of file APFloat.cpp.
References RHS.
void llvm::detail::DoubleAPFloat::changeSign | ( | ) |
Definition at line 5039 of file APFloat.cpp.
Referenced by makeLargest(), and subtract().
APFloat::cmpResult llvm::detail::DoubleAPFloat::compare | ( | const DoubleAPFloat & | RHS | ) | const |
Definition at line 5108 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 5045 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 5162 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 5173 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 5136 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 5184 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 5194 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 5154 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 4991 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 5019 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 5065 of file APFloat.cpp.
Referenced by llvm::detail::frexp(), isDenormal(), isLargest(), isSmallest(), and isSmallestNormalized().
Definition at line 5249 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 5260 of file APFloat.cpp.
int llvm::detail::DoubleAPFloat::getExactLog2Abs | ( | ) | const |
Definition at line 5265 of file APFloat.cpp.
|
inline |
|
inline |
bool llvm::detail::DoubleAPFloat::isDenormal | ( | ) | const |
Definition at line 5203 of file APFloat.cpp.
References llvm::APFloatBase::fcNormal, and getCategory().
bool llvm::detail::DoubleAPFloat::isInteger | ( | ) | const |
Definition at line 5235 of file APFloat.cpp.
References assert(), and llvm::semPPCDoubleDouble.
bool llvm::detail::DoubleAPFloat::isLargest | ( | ) | const |
Definition at line 5227 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 5069 of file APFloat.cpp.
Referenced by isLargest(), isSmallest(), and isSmallestNormalized().
bool llvm::detail::DoubleAPFloat::isSmallest | ( | ) | const |
Definition at line 5210 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 5218 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 5071 of file APFloat.cpp.
void llvm::detail::DoubleAPFloat::makeLargest | ( | bool | Neg | ) |
Definition at line 5081 of file APFloat.cpp.
References assert(), changeSign(), llvm::semIEEEdouble, and llvm::semPPCDoubleDouble.
Referenced by isLargest().
Definition at line 5103 of file APFloat.cpp.
void llvm::detail::DoubleAPFloat::makeSmallest | ( | bool | Neg | ) |
Definition at line 5089 of file APFloat.cpp.
References assert(), and llvm::semPPCDoubleDouble.
Referenced by isSmallest().
void llvm::detail::DoubleAPFloat::makeSmallestNormalized | ( | bool | Neg | ) |
Definition at line 5095 of file APFloat.cpp.
References assert(), llvm::semIEEEdouble, and llvm::semPPCDoubleDouble.
Referenced by isSmallestNormalized().
void llvm::detail::DoubleAPFloat::makeZero | ( | bool | Neg | ) |
Definition at line 5076 of file APFloat.cpp.
APFloat::opStatus llvm::detail::DoubleAPFloat::mod | ( | const DoubleAPFloat & | RHS | ) |
Definition at line 5010 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 4905 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 5145 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 4753 of file APFloat.cpp.
References RHS.
|
inline |
APFloat::opStatus llvm::detail::DoubleAPFloat::remainder | ( | const DoubleAPFloat & | RHS | ) |
Definition at line 5001 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 5031 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 4897 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 5240 of file APFloat.cpp.
References assert(), bitcastToAPInt(), llvm::semPPCDoubleDouble, llvm::semPPCDoubleDoubleLegacy, and llvm::APFloat::toString().
|
friend |
|
friend |
Definition at line 5121 of file APFloat.cpp.
|
friend |