LLVM  6.0.0svn
Functions
ScaledNumber.cpp File Reference
#include "llvm/Support/ScaledNumber.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for ScaledNumber.cpp:

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()

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

Definition at line 138 of file ScaledNumber.cpp.

References assert().

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

◆ appendNumber()

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

Definition at line 143 of file ScaledNumber.cpp.

References appendDigit().

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

◆ doesRoundUp()

static bool doesRoundUp ( char  Digit)
static

Definition at line 150 of file ScaledNumber.cpp.

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

◆ getHalf()

static uint64_t getHalf ( uint64_t  N)
static

◆ stripTrailingZeros()

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

Definition at line 192 of file ScaledNumber.cpp.

References assert().

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

◆ toStringAPFloat()

static std::string toStringAPFloat ( uint64_t  D,
int  E,
unsigned  Precision 
)
static