LLVM API Documentation
#include <ScaledNumber.h>
Static Public Member Functions | |
static void | dump (uint64_t D, int16_t E, int Width) |
static raw_ostream & | print (raw_ostream &OS, uint64_t D, int16_t E, int Width, unsigned Precision) |
static std::string | toString (uint64_t D, int16_t E, int Width, unsigned Precision) |
static int | countLeadingZeros32 (uint32_t N) |
static int | countLeadingZeros64 (uint64_t N) |
static uint64_t | getHalf (uint64_t N) |
static std::pair< uint64_t, bool > | splitSigned (int64_t N) |
static int64_t | joinSigned (uint64_t U, bool IsNeg) |
Static Public Attributes | |
static const int | DefaultPrecision = 10 |
Definition at line 421 of file ScaledNumber.h.
static int llvm::ScaledNumberBase::countLeadingZeros32 | ( | uint32_t | N | ) | [inline, static] |
Definition at line 430 of file ScaledNumber.h.
References llvm::countLeadingZeros().
static int llvm::ScaledNumberBase::countLeadingZeros64 | ( | uint64_t | N | ) | [inline, static] |
Definition at line 431 of file ScaledNumber.h.
References llvm::countLeadingZeros().
Referenced by toStringAPFloat().
void ScaledNumberBase::dump | ( | uint64_t | D, |
int16_t | E, | ||
int | Width | ||
) | [static] |
Definition at line 319 of file ScaledNumber.cpp.
References llvm::dbgs().
static uint64_t llvm::ScaledNumberBase::getHalf | ( | uint64_t | N | ) | [inline, static] |
Definition at line 432 of file ScaledNumber.h.
static int64_t llvm::ScaledNumberBase::joinSigned | ( | uint64_t | U, |
bool | IsNeg | ||
) | [inline, static] |
Definition at line 440 of file ScaledNumber.h.
References INT64_MAX, and INT64_MIN.
Referenced by llvm::ScaledNumber< uint64_t >::scale(), and llvm::ScaledNumber< uint64_t >::scaleByInverse().
raw_ostream & ScaledNumberBase::print | ( | raw_ostream & | OS, |
uint64_t | D, | ||
int16_t | E, | ||
int | Width, | ||
unsigned | Precision | ||
) | [static] |
Definition at line 314 of file ScaledNumber.cpp.
static std::pair<uint64_t, bool> llvm::ScaledNumberBase::splitSigned | ( | int64_t | N | ) | [inline, static] |
Definition at line 434 of file ScaledNumber.h.
References INT64_MIN, and Unsigned.
Referenced by llvm::ScaledNumber< uint64_t >::scale(), and llvm::ScaledNumber< uint64_t >::scaleByInverse().
std::string ScaledNumberBase::toString | ( | uint64_t | D, |
int16_t | E, | ||
int | Width, | ||
unsigned | Precision | ||
) | [static] |
Definition at line 200 of file ScaledNumber.cpp.
References appendDigit(), appendNumber(), doesRoundUp(), llvm::lltok::Error, I, stripTrailingZeros(), toStringAPFloat(), and UINT64_MAX.
const int llvm::ScaledNumberBase::DefaultPrecision = 10 [static] |
Definition at line 423 of file ScaledNumber.h.