[dpdk-dev] [PATCH] net/enic: move macro to the correct file
Thomas Monjalon
thomas at monjalon.net
Sun Jan 19 21:23:57 CET 2020
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?
More information about the dev
mailing list