util: move min/max/clamp macros to util macros.h