SquidMath.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef _SQUID_SRC_SQUIDMATH_H
10 #define _SQUID_SRC_SQUIDMATH_H
11 
12 /* Math functions we define locally for Squid */
13 namespace Math
14 {
15 
16 int intPercent(const int a, const int b);
17 int64_t int64Percent(const int64_t a, const int64_t b);
18 double doublePercent(const double, const double);
19 int intAverage(const int, const int, int, const int);
20 double doubleAverage(const double, const double, int, const int);
21 
22 } // namespace Math
23 
24 #endif /* _SQUID_SRC_SQUIDMATH_H */
25 
int intAverage(const int, const int, int, const int)
Definition: SquidMath.cc:40
int64_t int64Percent(const int64_t a, const int64_t b)
Definition: SquidMath.cc:19
double doublePercent(const double, const double)
Definition: SquidMath.cc:25
double doubleAverage(const double, const double, int, const int)
Definition: SquidMath.cc:31
int intPercent(const int a, const int b)
Definition: SquidMath.cc:13
int a
Definition: membanger.c:50

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors