]> git.ipfire.org Git - thirdparty/squid.git/blob - src/SquidMath.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / SquidMath.h
1 /*
2 * Copyright (C) 1996-2015 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