Go to the source code of this file.
Macros | |
#define | _etext etext |
#define | max_cc_calls 5 |
Functions | |
void | Tolower (char *q) |
double | xpercent (double part, double whole) |
int | xpercentInt (double part, double whole) |
double | xdiv (double nom, double denom) |
const char * | xitoa (int num) |
const char * | xint64toa (int64_t num) |
void | gb_flush (gb_t *g) |
double | gb_to_double (const gb_t *g) |
const char * | double_to_str (char *buf, int buf_size, double value) |
const char * | gb_to_str (const gb_t *g) |
unsigned int | RoundTo (const unsigned int num, const unsigned int what) |
Macro Definition Documentation
◆ _etext
◆ max_cc_calls
#define max_cc_calls 5 |
Function Documentation
◆ double_to_str()
Definition at line 90 of file util.c.
Referenced by Mem::Report().
◆ gb_flush()
void gb_flush | ( | gb_t * | g | ) |
Definition at line 77 of file util.c.
References gb_t::bytes, and gb_t::gb.
◆ gb_to_double()
Definition at line 84 of file util.c.
References gb_t::bytes, double, and gb_t::gb.
Referenced by gb_to_str().
◆ gb_to_str()
const char * gb_to_str | ( | const gb_t * | g | ) |
Definition at line 105 of file util.c.
References gb_to_double(), and max_cc_calls.
◆ RoundTo()
◆ Tolower()
void Tolower | ( | char * | q | ) |
Definition at line 28 of file util.c.
References xtolower.
Referenced by CachePeer::CachePeer(), ipcache_entry::ipcache_entry(), fqdncacheAddEntryFromHosts(), idnsAddPathComponent(), internalHostname(), internalRemoteUri(), and ACLDomainData::parse().
◆ xdiv()
Definition at line 53 of file util.c.
Referenced by cacheDigestReport(), httpHdrCcStatDumper(), httpHdrScStatDumper(), httpHdrScTargetStatDumper(), httpHeaderFieldStatDumper(), Mem::PoolReport(), and xpercent().
◆ xint64toa()
const char * xint64toa | ( | int64_t | num | ) |
◆ xitoa()
const char * xitoa | ( | int | num | ) |
Definition at line 60 of file util.c.
Referenced by Ssl::CertValidationMsg::composeRequest(), Ipc::Port::MakeAddr(), ProcessMacros(), and HttpHeader::putInt().
◆ xpercent()
Definition at line 40 of file util.c.
References xdiv().
Referenced by cacheDigestGuessStatsReport(), httpHeaderFldsPerHdrDumper(), httpHeaderStoreReport(), Mem::PoolReport(), refreshCountsStatsEntry(), refreshStats(), Mem::Report(), storeDigestReport(), CacheDigest::usedMaskPercent(), and xpercentInt().
◆ xpercentInt()
Definition at line 46 of file util.c.
References xpercent().
Referenced by cacheDigestGuessStatsReport(), cacheDigestReport(), cacheQueryReport(), memStringStats(), peerDigestSetCBlock(), statPeerSelect(), and storeDigestResize().