Source/astcenc_mathlib.h
static inline int clampi(int val, int low, int high)
{
	if (val < low) return low;
	if (val > high) return high;
	return val;
}
/**
 * @brief Clamp an integer between two specified limits.
 *
 * @param val The value clamp.
 *
 * @return The clamped value.
 */
@brief Clamp an integer between two specified limits.
@param val The value clamp.

@return The clamped value.
@brief Clamp an integer between two specified limits . @param val The value clamp . @return The clamped value .
static inline int clampi(int val, int low, int high)
{
	if (val < low) return low;
	if (val > high) return high;
	return val;
}
static inline int clampi ( int val , int low , int high ) { if ( val < low ) return low ; if ( val > high ) return high ; return val ; }
@brief Clamp an integer between two specified limits.
@brief Clamp an integer between two specified limits .