[PATCH 01/19 v6.1.y] minmax: add in_range() macro