LLVM 22.0.0git
ScaledNumber.cpp File Reference

Go to the source code of this file.

Functions

static uint64_t getHalf (uint64_t N)
static void appendDigit (std::string &Str, unsigned D)
static void appendNumber (std::string &Str, uint64_t N)
static bool doesRoundUp (char Digit)
static std::string toStringAPFloat (uint64_t D, int E, unsigned Precision)
static std::string stripTrailingZeros (const std::string &Float)

Function Documentation

◆ appendDigit()

void appendDigit ( std::string & Str,
unsigned D )
static

Definition at line 137 of file ScaledNumber.cpp.

References assert(), and D().

Referenced by appendNumber(), and llvm::ScaledNumberBase::toString().

◆ appendNumber()

void appendNumber ( std::string & Str,
uint64_t N )
static

Definition at line 142 of file ScaledNumber.cpp.

References appendDigit(), and N.

Referenced by llvm::ScaledNumberBase::toString().

◆ doesRoundUp()

bool doesRoundUp ( char Digit)
static

Definition at line 149 of file ScaledNumber.cpp.

Referenced by llvm::ScaledNumberBase::toString().

◆ getHalf()

uint64_t getHalf ( uint64_t N)
static

Definition at line 55 of file ScaledNumber.cpp.

References N.

Referenced by llvm::ScaledNumbers::divide32(), and llvm::ScaledNumbers::divide64().

◆ stripTrailingZeros()

std::string stripTrailingZeros ( const std::string & Float)
static

Definition at line 191 of file ScaledNumber.cpp.

References assert(), and Float.

Referenced by llvm::ScaledNumberBase::toString().

◆ toStringAPFloat()