LLVM 22.0.0git
llvm::ScaledNumberBase Class Reference

#include "llvm/Support/ScaledNumber.h"

Inheritance diagram for llvm::ScaledNumberBase:
[legend]

Static Public Member Functions

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

Static Public Attributes

static constexpr int DefaultPrecision = 10

Detailed Description

Definition at line 423 of file ScaledNumber.h.

Member Function Documentation

◆ countLeadingZeros32()

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

Definition at line 432 of file ScaledNumber.h.

References llvm::countl_zero(), and N.

◆ countLeadingZeros64()

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

Definition at line 433 of file ScaledNumber.h.

References llvm::countl_zero(), and N.

Referenced by toString(), and toStringAPFloat().

◆ dump()

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

Definition at line 322 of file ScaledNumber.cpp.

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

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

◆ getHalf()

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

Definition at line 434 of file ScaledNumber.h.

References N.

◆ joinSigned()

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

◆ print()

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

Definition at line 317 of file ScaledNumber.cpp.

References D(), and toString().

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

◆ splitSigned()

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

◆ toString()

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

Member Data Documentation

◆ DefaultPrecision

int llvm::ScaledNumberBase::DefaultPrecision = 10
staticconstexpr

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