3 ms·return max(low, ( min(val, high) )); Still hard to avoid comparisons.by thaumasiotes 9y agoreturn max(low, ( min(val, high) )); Still hard to avoid comparisons.