[PATCH v2 12/13 6.1.y] minmax.h: simplify the variants of clamp()