Math Namespace Reference

Functions

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)
 

Variables

hbase_f Log
 
hbase_f Exp
 
hbase_f Null
 

Function Documentation

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

Definition at line 31 of file SquidMath.cc.

References max().

Referenced by peerCountMcastPeersDone().

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

Definition at line 19 of file SquidMath.cc.

int Math::intAverage ( const int  cur,
const int  newI,
int  n,
const int  max 
)
int Math::intPercent ( const int  a,
const int  b 
)

Definition at line 13 of file SquidMath.cc.

References int.

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

Variable Documentation

double Math::Exp

Definition at line 22 of file StatHist.cc.

Referenced by StatHist::logInit().

double Math::Log

Definition at line 21 of file StatHist.cc.

Referenced by StatHist::logInit().

double Math::Null

Definition at line 23 of file StatHist.cc.

Referenced by StatHist::enumInit().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors