clamp_value
return clamp_value(nmax, 2, 8 + ncpus * 2);
uint32_t clamp_value)
if (ret_val > clamp_value)
ret_val = clamp_value;