]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/SquidMath.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 #ifndef _SQUID_SRC_SQUIDMATH_H
10 #define _SQUID_SRC_SQUIDMATH_H
12 /* Math functions we define locally for Squid */
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);
24 #endif /* _SQUID_SRC_SQUIDMATH_H */