14/01/2020 01:24, John Daley:
> +#define min_t(type, x, y) ({                    \
> +     type __min1 = (x);                      \
> +     type __min2 = (y);                      \
> +     __min1 < __min2 ? __min1 : __min2; })
> +
> +#define max_t(type, x, y) ({                    \
> +     type __max1 = (x);                      \
> +     type __max2 = (y);                      \
> +     __max1 > __max2 ? __max1 : __max2; })

Why not using RTE_MIN/RTE_MAX which use typeof?
You need to specify a type?


Reply via email to