[PATCH 6.1.y 2/7] minmax: clamp more efficiently by avoiding extra comparison