src/core/math_func.hpp
changeset 8113 31b7784db761
parent 8091 674be8638d74
child 8123 ce31d2843a95
equal deleted inserted replaced
8112:24b89cd40bfd 8113:31b7784db761
    14 #endif
    14 #endif
    15 
    15 
    16 #ifdef abs
    16 #ifdef abs
    17 #undef abs
    17 #undef abs
    18 #endif
    18 #endif
       
    19 
       
    20 /**
       
    21  * The largest value that can be entered in a variable
       
    22  * @param type the type of the variable
       
    23  */
       
    24 #define MAX_UVALUE(type) ((type)~(type)0)
    19 
    25 
    20 /**
    26 /**
    21  * Returns the maximum of two values.
    27  * Returns the maximum of two values.
    22  *
    28  *
    23  * This function returns the greater value of two given values.
    29  * This function returns the greater value of two given values.