Re: [RFC PATCH v2 01/33] eal: add more min/max helpers

fengchengwen
2025-11-10T00:59:37Z

Acked-by: Chengwen Feng <fengchengwen@huawei.com>

On 11/7/2025 11:49 PM, Bruce Richardson wrote:
> From: Stephen Hemminger <stephen@networkplumber.org>
>
> Add RTE_MIN3() to handle case of RTE_MIN(RTE_MIN(...)), and similarly
> add RTE_MAX3(). Change name of local temporary variables in RTE_MAX()
> to allow for combinations of RTE_MIN(RTE_MAX(...)) without causing
> shadow declaration warnings.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>