join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::details Namespace Reference

Classes

struct  _byteswap
 
struct  _byteswap< double, 8 >
 
struct  _byteswap< float, 4 >
 
struct  _byteswap< Type, 1 >
 
struct  _byteswap< Type, 2 >
 
struct  _byteswap< Type, 4 >
 
struct  _byteswap< Type, 8 >
 
struct  _swap
 
struct  EscapedTable
 
struct  is_first_default_constructible
 check that first alternative is default constructible. More...
 
struct  lessNoCase
 
struct  Power
 
struct  UnescapedTable
 
struct  VariantHelper
 helper class for variant operations using jump tables for O(1) dispatch. More...
 
struct  VariantStorage
 helper class representing a variant storage in order to be able to disable default/copy/move constructors/operators. More...
 
struct  WhitespaceTable
 

Functions

int latencyScaleIndex () noexcept
 returns the xalloc index used to store the latency scale on a stream.
 
int throughputScaleIndex () noexcept
 returns the xalloc index used to store the throughput scale on a stream.
 
char * writeExponent (char *buffer, int k) noexcept
 
char * prettify (char *buffer, int length, int k) noexcept
 
void grisuRound (char *buffer, int length, uint64_t delta, uint64_t rest, uint64_t ten_kappa, uint64_t wp_w) noexcept
 
constexpr int digitsCount (uint32_t n) noexcept
 
void digitsGen (const DiyFp &W, const DiyFp &Mp, uint64_t delta, char *buffer, int &length, int &k) noexcept
 
void grisu2 (char *buffer, int &length, int &k, double value) noexcept
 

Variables

constexpr int colMetric = 24
 width of the metric name column.
 
constexpr int colCount = 14
 width of the sample count column.
 
constexpr int colThroughput = 20
 width of the throughput column.
 
constexpr int colLatency = 16
 width of the latency columns.
 
constexpr int colTotal = colMetric + colCount + colThroughput + colLatency * 6
 total table width.
 
constexpr Power atodpow []
 
constexpr uint32_t pow10 [] = {1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000}
 
constexpr DiyFp dtoapow []
 
constexpr char digitPairs [201]
 
constexpr UnescapedTable unescapedLookup {}
 
constexpr EscapedTable escapedLookup {}
 
constexpr WhitespaceTable whitespaceLookup {}
 

Function Documentation

◆ digitsCount()

int join::details::digitsCount ( uint32_t n)
constexprnoexcept

◆ digitsGen()

void join::details::digitsGen ( const DiyFp & W,
const DiyFp & Mp,
uint64_t delta,
char * buffer,
int & length,
int & k )
inlinenoexcept

◆ grisu2()

void join::details::grisu2 ( char * buffer,
int & length,
int & k,
double value )
inlinenoexcept

◆ grisuRound()

void join::details::grisuRound ( char * buffer,
int length,
uint64_t delta,
uint64_t rest,
uint64_t ten_kappa,
uint64_t wp_w )
inlinenoexcept

◆ latencyScaleIndex()

int join::details::latencyScaleIndex ( )
inlinenoexcept

returns the xalloc index used to store the latency scale on a stream.

Returns
stream storage index.

◆ prettify()

char * join::details::prettify ( char * buffer,
int length,
int k )
inlinenoexcept

◆ throughputScaleIndex()

int join::details::throughputScaleIndex ( )
inlinenoexcept

returns the xalloc index used to store the throughput scale on a stream.

Returns
stream storage index.

◆ writeExponent()

char * join::details::writeExponent ( char * buffer,
int k )
inlinenoexcept

Variable Documentation

◆ atodpow

Power join::details::atodpow[]
constexpr

◆ colCount

int join::details::colCount = 14
constexpr

width of the sample count column.

◆ colLatency

int join::details::colLatency = 16
constexpr

width of the latency columns.

◆ colMetric

int join::details::colMetric = 24
constexpr

width of the metric name column.

◆ colThroughput

int join::details::colThroughput = 20
constexpr

width of the throughput column.

◆ colTotal

int join::details::colTotal = colMetric + colCount + colThroughput + colLatency * 6
constexpr

total table width.

◆ digitPairs

char join::details::digitPairs[201]
constexpr
Initial value:
= {
"00010203040506070809"
"10111213141516171819"
"20212223242526272829"
"30313233343536373839"
"40414243444546474849"
"50515253545556575859"
"60616263646566676869"
"70717273747576777879"
"80818283848586878889"
"90919293949596979899"}

◆ dtoapow

DiyFp join::details::dtoapow[]
constexpr

◆ escapedLookup

EscapedTable join::details::escapedLookup {}
constexpr

◆ pow10

uint32_t join::details::pow10[] = {1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000}
constexpr

◆ unescapedLookup

UnescapedTable join::details::unescapedLookup {}
constexpr

◆ whitespaceLookup

WhitespaceTable join::details::whitespaceLookup {}
constexpr