]> git.ipfire.org Git - thirdparty/squid.git/blame - src/SquidMath.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / SquidMath.h
CommitLineData
bbc27441 1/*
77b1029d 2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
bbc27441
AJ
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
a98bcbee
AJ
9#ifndef _SQUID_SRC_SQUIDMATH_H
10#define _SQUID_SRC_SQUIDMATH_H
11
12/* Math functions we define locally for Squid */
f9afa4fb
A
13namespace Math
14{
a98bcbee 15
8a648e8d
FC
16int intPercent(const int a, const int b);
17int64_t int64Percent(const int64_t a, const int64_t b);
18double doublePercent(const double, const double);
19int intAverage(const int, const int, int, const int);
20double doubleAverage(const double, const double, int, const int);
a98bcbee 21
e5519212 22} // namespace Math
a98bcbee
AJ
23
24#endif /* _SQUID_SRC_SQUIDMATH_H */
f53969cc 25