Signed-off-by: Chengwen Feng <fengcheng...@huawei.com> On 2025/2/12 6:01, Andre Muezerie wrote: > There's no MSVC equivalent for compiler extension __builtin_constant_p. > EAL already had __rte_constant which was used as a first attempt to > workaround __builtin_constant_p when using MSVC. However, there are > pieces of code that would benefit from being able to provide a default > value to be used instead of it being always 0 like how it was done by > __rte_constant. > > A new macro is added here allowing such default to be provided by the > caller. > > Signed-off-by: Andre Muezerie <andre...@linux.microsoft.com>
- Re: [PATCH 08/10] test-pmd: declare lcore_count ato... Stephen Hemminger
- Re: [PATCH 08/10] test-pmd: declare lcore_count... Andre Muezerie
- Re: [PATCH 08/10] test-pmd: declare lcore_count ato... fengchengwen
- [PATCH 06/10] test-pmd: avoid non-constant initializer Andre Muezerie
- [PATCH 09/10] test: add workaround for __builtin_constan... Andre Muezerie
- Re: [PATCH 09/10] test: add workaround for __builti... Stephen Hemminger
- Re: [PATCH 09/10] test: add workaround for __bu... Andre Muezerie
- [PATCH 01/10] eal: add workaround for __builtin_constant... Andre Muezerie
- Re: [PATCH 01/10] eal: add workaround for __builtin... Stephen Hemminger
- Re: [PATCH 01/10] eal: add workaround for __builtin... fengchengwen
- Re: [PATCH 00/10] enable "app" to be compiled ... David Marchand
- [PATCH v2 00/10] enable "app" to be compiled w... Andre Muezerie
- [PATCH v2 03/10] test-pmd: fix printf format string... Andre Muezerie
- Re: [PATCH v2 03/10] test-pmd: fix printf forma... Bruce Richardson
- Re: [PATCH v2 03/10] test-pmd: fix printf f... Andre Muezerie
- Re: [PATCH v2 03/10] test-pmd: fix prin... Bruce Richardson
- Re: [PATCH v2 03/10] test-pmd: fix... Andre Muezerie
- [PATCH v2 04/10] test-pmd: do explicit 64-bit shift... Andre Muezerie
- Re: [PATCH v2 04/10] test-pmd: do explicit 64-b... Bruce Richardson
- [PATCH v2 01/10] eal: add workaround for __builtin_... Andre Muezerie