[PATCH 18/19 v6.1.y] minmax.h: simplify the variants of clamp()