summaryrefslogtreecommitdiff
path: root/src/core/math_func.hpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-06-09 12:50:33 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-06-09 12:50:33 +0000
commitdfad8317aa566efffb971455b42bfdecbaee5985 (patch)
tree47d6529f55d5ea1ea61f50d9179cba5964a4999b /src/core/math_func.hpp
parentdb671ffb8673c5088749663e64713d9b852ec1e5 (diff)
downloadopenttd-dfad8317aa566efffb971455b42bfdecbaee5985.tar.xz
(svn r25347) -Add: function for deterministic approximate division
Diffstat (limited to 'src/core/math_func.hpp')
-rw-r--r--src/core/math_func.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/math_func.hpp b/src/core/math_func.hpp
index b613d1e6a..fd4110231 100644
--- a/src/core/math_func.hpp
+++ b/src/core/math_func.hpp
@@ -317,6 +317,7 @@ static inline uint ToPercent16(uint i)
int LeastCommonMultiple(int a, int b);
int GreatestCommonDivisor(int a, int b);
+int DivideApprox(int a, int b);
/**
* Computes ceil(a / b) for non-negative a and b.