summaryrefslogtreecommitdiff
path: root/src/core/math_func.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-21 01:34:31 +0000
committerrubidium <rubidium@openttd.org>2009-03-21 01:34:31 +0000
commit3ef8a09e20d8ab33d3b87d63be0ffa2c34fb427a (patch)
treef1445bfef3792ebd7abfef3479ee355581e5602e /src/core/math_func.hpp
parentda37ab321dda9975eb9e8f3243214f8f120b52a9 (diff)
downloadopenttd-3ef8a09e20d8ab33d3b87d63be0ffa2c34fb427a.tar.xz
(svn r15777) -Add: helper functions to get the least common multiple and the greatest common divisor (Alberth)
Diffstat (limited to 'src/core/math_func.hpp')
-rw-r--r--src/core/math_func.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/math_func.hpp b/src/core/math_func.hpp
index 6a0f5c17a..35e660d88 100644
--- a/src/core/math_func.hpp
+++ b/src/core/math_func.hpp
@@ -264,4 +264,7 @@ static FORCEINLINE void Swap(T &a, T &b)
b = t;
}
+int LeastCommonMultiple(int a, int b);
+int GreatestCommonDivisor(int a, int b);
+
#endif /* MATH_FUNC_HPP */