util.c File Reference
#include "squid.h"
#include "util.h"
Include dependency graph for util.c:

Go to the source code of this file.

Macros

#define _etext   etext
 
#define max_cc_calls   5
 

Functions

void Tolower (char *q)
 
int tvSubUsec (struct timeval t1, struct timeval t2)
 
double tvSubDsec (struct timeval t1, struct timeval t2)
 
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

#define _etext   etext

Definition at line 9 of file util.c.

#define max_cc_calls   5

Referenced by gb_to_str().

Function Documentation

const char* double_to_str ( char *  buf,
int  buf_size,
double  value 
)

Definition at line 109 of file util.c.

References buf.

Referenced by Mem::Report().

void gb_flush ( gb_t g)

Definition at line 96 of file util.c.

References gb_t::bytes, and gb_t::gb.

double gb_to_double ( const gb_t g)

Definition at line 103 of file util.c.

References gb_t::bytes, and gb_t::gb.

Referenced by gb_to_str().

const char* gb_to_str ( const gb_t g)

Definition at line 124 of file util.c.

References buf, gb_to_double(), and max_cc_calls.

unsigned int RoundTo ( const unsigned int  num,
const unsigned int  what 
)

rounds num to the next upper integer multiple of what

Definition at line 153 of file util.c.

int tvSubUsec ( struct timeval  t1,
struct timeval  t2 
)

Definition at line 39 of file util.c.

Referenced by clientUpdateHierCounters(), and icpUdpSendQueue().

double xdiv ( double  nom,
double  denom 
)
const char* xint64toa ( int64_t  num)

Definition at line 88 of file util.c.

References buf, and PRId64.

Referenced by HttpHeader::putInt64().

const char* xitoa ( int  num)
int xpercentInt ( double  part,
double  whole 
)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors