[PATCH v3 01/10] eal: add workaround for __builtin_constant_p
Stephen Hemminger
stephen at networkplumber.org
Thu Feb 20 03:27:27 CET 2025
On Wed, 19 Feb 2025 18:01:30 -0800
Andre Muezerie <andremue at linux.microsoft.com> wrote:
>
> #ifdef RTE_TOOLCHAIN_MSVC
> -#define __rte_constant(e) 0
> +#define __rte_constant(e) _Generic((1 ? (void *) ((e) * 0ll) : (int *) 0), int * : 1, void * : 0)
> #else
> #define __rte_constant(e) __extension__(__builtin_constant_p(e))
> #endif
Probably worth some explanation as to what is going on.
More information about the dev
mailing list