@@ -111,39 +111,39 @@ template<typename T> static inline T min
/**
* Returns the minimum of two integer.
*
* This function returns the smaller value of two given integers.
* @param a The first integer
* @param b The second integer
* @return The smaller value
*/
static inline int min(const int a, const int b)
{
return a <= b ? a : b;
return a < b ? a : b;
}
* Returns the minimum of two unsigned integers.
* This function returns the smaller value of two given unsigned integers.
* @param a The first unsigned integer
* @param b The second unsigned integer
static inline uint minu(const uint a, const uint b)
* Clamp an integer between an interval.
* This function returns a value which is between the given interval of
* min and max. If the given value is in this interval the value itself
* is returned otherwise the border of the interval is returned, according
* which side of the interval was 'left'.
* @note The min value must be less or equal of max or you get some
* unexpected results.
Status change: