LLVM 20.0.0git
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]

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 constexpr 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::countl_zero(), and N.

◆ countLeadingZeros64()

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

Definition at line 430 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 320 of file ScaledNumber.cpp.

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

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

◆ getHalf()

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

Definition at line 431 of file ScaledNumber.h.

References N.

◆ joinSigned()

static 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 315 of file ScaledNumber.cpp.

References D, OS, and toString().

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

◆ splitSigned()

static 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

constexpr int llvm::ScaledNumberBase::DefaultPrecision = 10
staticconstexpr

Definition at line 422 of file ScaledNumber.h.


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