MIN_T
#define MIN_T(type, x, y) MIN((type)(x), (type)(y))
#define MIN_T(_t, _a, _b) min((_t)(_a), (_t)(_b))