[PATCH v3 10/11 6.1.y] minmax.h: simplify the variants of clamp()