summaryrefslogtreecommitdiff
path: root/src/common/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/utils.h')
-rw-r--r--src/common/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/utils.h b/src/common/utils.h
index 21e8e090c..93563dc34 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -18,6 +18,9 @@ void findfile(const char *p, const char *pat, void (func)(const char*));
//Caps values to min/max
#define cap_value(a, min, max) ((a >= max) ? max : (a <= min) ? min : a)
+/// calculates the value of A / B, in percent (rounded down)
+unsigned int get_percentage(const unsigned int A, const unsigned int B);
+
//////////////////////////////////////////////////////////////////////////
// byte word dword access [Shinomori]
//////////////////////////////////////////////////////////////////////////