]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 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 |
13 | namespace Math |
14 | { | |
a98bcbee | 15 | |
8a648e8d FC |
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); | |
a98bcbee | 21 | |
e5519212 | 22 | } // namespace Math |
a98bcbee AJ |
23 | |
24 | #endif /* _SQUID_SRC_SQUIDMATH_H */ | |
f53969cc | 25 |