diff options
Diffstat (limited to 'src/core/math_func.hpp')
-rw-r--r-- | src/core/math_func.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/math_func.hpp b/src/core/math_func.hpp index c05e7ffeb..242b17b95 100644 --- a/src/core/math_func.hpp +++ b/src/core/math_func.hpp @@ -18,6 +18,12 @@ #endif /** + * The largest value that can be entered in a variable + * @param type the type of the variable + */ +#define MAX_UVALUE(type) ((type)~(type)0) + +/** * Returns the maximum of two values. * * This function returns the greater value of two given values. |