Re: [PATCH v4 01/10] eal: add workaround for __builtin_constant_p

2025-02-21 Thread Andre Muezerie
On Fri, Feb 21, 2025 at 04:31:28PM +0100, Morten Brørup wrote: > Thank you for this updated MSVC variant of the macro, and its detailed > description. > > Acked-by: Morten Brørup Sure. Thank you for pushing for this better solution.

RE: [PATCH v4 01/10] eal: add workaround for __builtin_constant_p

2025-02-21 Thread Morten Brørup
Thank you for this updated MSVC variant of the macro, and its detailed description. Acked-by: Morten Brørup

[PATCH v4 01/10] eal: add workaround for __builtin_constant_p

2025-02-20 Thread Andre Muezerie
There's no MSVC equivalent for compiler extension __builtin_constant_p, but the same result can be obtained through a clever expression using _Generic. This patch redefines the macro __rte_constant when msvc is used and uses it as a replacement for __builtin_constant_p. Signed-off-by: Andre Mueze