LLVM  8.0.1
Static Public Member Functions | Static Public Attributes | List of all members
llvm::ScaledNumberBase Class Reference

#include "llvm/Support/ScaledNumber.h"

Inheritance diagram for llvm::ScaledNumberBase:
Inheritance graph
[legend]
Collaboration diagram for llvm::ScaledNumberBase:
Collaboration graph
[legend]

Static Public Member Functions

static void dump (uint64_t D, int16_t E, int Width)
 
static raw_ostreamprint (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, boolsplitSigned (int64_t N)
 
static int64_t joinSigned (uint64_t U, bool IsNeg)
 

Static Public Attributes

static const int DefaultPrecision = 10
 

Detailed Description

Definition at line 420 of file ScaledNumber.h.

Member Function Documentation

◆ countLeadingZeros32()

static int llvm::ScaledNumberBase::countLeadingZeros32 ( uint32_t  N)
inlinestatic

Definition at line 429 of file ScaledNumber.h.

References llvm::countLeadingZeros().

◆ countLeadingZeros64()

static int llvm::ScaledNumberBase::countLeadingZeros64 ( uint64_t  N)
inlinestatic

Definition at line 430 of file ScaledNumber.h.

References llvm::countLeadingZeros().

Referenced by toStringAPFloat().

◆ dump()

void ScaledNumberBase::dump ( uint64_t  D,
int16_t  E,
int  Width 
)
static

Definition at line 321 of file ScaledNumber.cpp.

References llvm::dbgs(), and print().

Referenced by llvm::ScaledNumber< uint64_t >::dump().

◆ getHalf()

static uint64_t llvm::ScaledNumberBase::getHalf ( uint64_t  N)
inlinestatic

Definition at line 431 of file ScaledNumber.h.

◆ joinSigned()

static int64_t llvm::ScaledNumberBase::joinSigned ( uint64_t  U,
bool  IsNeg 
)
inlinestatic

Definition at line 439 of file ScaledNumber.h.

References INT64_MAX, and INT64_MIN.

◆ print()

raw_ostream & ScaledNumberBase::print ( raw_ostream OS,
uint64_t  D,
int16_t  E,
int  Width,
unsigned  Precision 
)
static

Definition at line 316 of file ScaledNumber.cpp.

References llvm::toString().

Referenced by llvm::ScaledNumber< uint64_t >::print().

◆ splitSigned()

static std::pair<uint64_t, bool> llvm::ScaledNumberBase::splitSigned ( int64_t  N)
inlinestatic

Definition at line 433 of file ScaledNumber.h.

References INT64_MIN, and Unsigned.

◆ toString()

std::string ScaledNumberBase::toString ( uint64_t  D,
int16_t  E,
int  Width,
unsigned  Precision 
)
static

Member Data Documentation

◆ DefaultPrecision

const int llvm::ScaledNumberBase::DefaultPrecision = 10
static

Definition at line 422 of file ScaledNumber.h.


The documentation for this class was generated from the following files: