Math Namespace Reference


int intPercent (const int a, const int b)
int64_t int64Percent (const int64_t a, const int64_t b)
double doublePercent (const double, const double)
int intAverage (const int, const int, int, const int)
double doubleAverage (const double, const double, int, const int)


hbase_f Log
hbase_f Exp
hbase_f Null

Function Documentation

◆ doubleAverage()

double Math::doubleAverage ( const double  cur,
const double  newD,
int  N,
const int  max 

Definition at line 31 of file

References max().

Referenced by peerCountMcastPeersDone().

◆ doublePercent()

◆ int64Percent()

int64_t Math::int64Percent ( const int64_t  a,
const int64_t  b 

Definition at line 19 of file

◆ intAverage()

int Math::intAverage ( const int  cur,
const int  newI,
int  n,
const int  max 

◆ intPercent()

int Math::intPercent ( const int  a,
const int  b 

Definition at line 13 of file

References int.

Referenced by clientdbDump(), dump_peers(), dumpMallocStats(), and Fs::Ufs::UFSSwapDir::statfs().

Variable Documentation

◆ Exp

double Math::Exp

Definition at line 22 of file

Referenced by StatHist::logInit(), and StatHist::operator+=().

◆ Log

double Math::Log

Definition at line 21 of file

Referenced by StatHist::logInit(), StatHist::operator+=(), and Icmp::~Icmp().

◆ Null

double Math::Null

Definition at line 23 of file

Referenced by StatHist::enumInit(), and StatHist::logInit().






Web Site Translations