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)
 
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

#define _etext   etext

Definition at line 9 of file util.c.

◆ max_cc_calls

#define max_cc_calls   5

Function Documentation

◆ double_to_str()

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

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()

double gb_to_double ( const gb_t g)

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()

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

rounds num to the next upper integer multiple of what

Definition at line 134 of file util.c.

◆ Tolower()

◆ xdiv()

◆ xint64toa()

const char * xint64toa ( int64_t  num)

Definition at line 69 of file util.c.

References PRId64.

Referenced by HttpHeader::putInt64().

◆ xitoa()

const char * xitoa ( int  num)

◆ xpercent()

◆ xpercentInt()

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors