src/core/math_func.hpp
changeset 8123 ce31d2843a95
parent 8113 31b7784db761
child 8130 d2eb7d04f6e1
equal deleted inserted replaced
8122:986d42e2281d 8123:ce31d2843a95
    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)
       
    25 
    19 
    26 /**
    20 /**
    27  * Returns the maximum of two values.
    21  * Returns the maximum of two values.
    28  *
    22  *
    29  * This function returns the greater value of two given values.
    23  * This function returns the greater value of two given values.