1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 02:12:37 +01:00

(svn r25347) -Add: function for deterministic approximate division

This commit is contained in:
fonsinchen
2013-06-09 12:50:33 +00:00
parent db671ffb86
commit dfad8317aa
2 changed files with 22 additions and 0 deletions

View File

@@ -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.