src/core/math_func.hpp
changeset 8609 8c0c3e9dd6a0
parent 8587 6db234b2b897
child 8619 c2434269c3eb
equal deleted inserted replaced
8608:45d77f05d3a3 8609:8c0c3e9dd6a0
    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.