LLVM 22.0.0git
|
#include "llvm/Support/ScaledNumber.h"
Static Public Member Functions | |
static LLVM_ABI void | dump (uint64_t D, int16_t E, int Width) |
static LLVM_ABI raw_ostream & | print (raw_ostream &OS, uint64_t D, int16_t E, int Width, unsigned Precision) |
static LLVM_ABI 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 constexpr int | DefaultPrecision = 10 |
Definition at line 423 of file ScaledNumber.h.
|
inlinestatic |
Definition at line 432 of file ScaledNumber.h.
References llvm::countl_zero(), and N.
|
inlinestatic |
Definition at line 433 of file ScaledNumber.h.
References llvm::countl_zero(), and N.
Referenced by toString(), and toStringAPFloat().
|
static |
Definition at line 322 of file ScaledNumber.cpp.
References D(), llvm::dbgs(), and print().
Referenced by llvm::ScaledNumber< uint64_t >::dump().
Definition at line 434 of file ScaledNumber.h.
References N.
Definition at line 442 of file ScaledNumber.h.
References INT64_MAX, and INT64_MIN.
Referenced by llvm::ScaledNumber< uint64_t >::scale(), and llvm::ScaledNumber< uint64_t >::scaleByInverse().
|
static |
Definition at line 317 of file ScaledNumber.cpp.
References D(), and toString().
Referenced by dump(), and llvm::ScaledNumber< uint64_t >::print().
Definition at line 436 of file ScaledNumber.h.
References INT64_MIN, N, and llvm::Unsigned.
Referenced by llvm::ScaledNumber< uint64_t >::scale(), and llvm::ScaledNumber< uint64_t >::scaleByInverse().
|
static |
Definition at line 201 of file ScaledNumber.cpp.
References appendDigit(), appendNumber(), countLeadingZeros64(), D(), doesRoundUp(), I, stripTrailingZeros(), toStringAPFloat(), and UINT64_MAX.
Referenced by print(), and llvm::ScaledNumber< uint64_t >::toString().
|
staticconstexpr |
Definition at line 425 of file ScaledNumber.h.
Referenced by llvm::ScaledNumber< uint64_t >::print(), and llvm::ScaledNumber< uint64_t >::toString().