LLVM 20.0.0git
|
#include "llvm/Support/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 constexpr int | DefaultPrecision = 10 |
Definition at line 420 of file ScaledNumber.h.
|
inlinestatic |
Definition at line 429 of file ScaledNumber.h.
References llvm::countl_zero(), and N.
|
inlinestatic |
Definition at line 430 of file ScaledNumber.h.
References llvm::countl_zero(), and N.
Referenced by toString(), and toStringAPFloat().
|
static |
Definition at line 320 of file ScaledNumber.cpp.
References D, llvm::dbgs(), and print().
Referenced by llvm::ScaledNumber< DigitsT >::dump().
Definition at line 431 of file ScaledNumber.h.
References N.
Definition at line 439 of file ScaledNumber.h.
References INT64_MAX, and INT64_MIN.
Referenced by llvm::ScaledNumber< DigitsT >::scale(), and llvm::ScaledNumber< DigitsT >::scaleByInverse().
|
static |
Definition at line 315 of file ScaledNumber.cpp.
References D, OS, and toString().
Referenced by dump(), and llvm::ScaledNumber< DigitsT >::print().
Definition at line 433 of file ScaledNumber.h.
References INT64_MIN, N, and Unsigned.
Referenced by llvm::ScaledNumber< DigitsT >::scale(), and llvm::ScaledNumber< DigitsT >::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< DigitsT >::toString().
|
staticconstexpr |
Definition at line 422 of file ScaledNumber.h.