On 5/27/24 15:00, Bruce Richardson wrote:
On Wed, Mar 20, 2024 at 02:33:35PM -0700, Tyler Retzlaff wrote:
MSVC does not have a __builtin_constant_p intrinsic so provide
__rte_constant(e) that expands false for MSVC and to the intrinsic for
GCC.
Signed-off-by: Tyler Retzlaff
---
lib/eal/inclu
On 4/1/24 11:34, Morten Brørup wrote:
From: Stephen Hemminger [mailto:step...@networkplumber.org]
Sent: Monday, 1 April 2024 00.03
On Wed, 20 Mar 2024 14:33:35 -0700
Tyler Retzlaff wrote:
+#ifdef RTE_TOOLCHAIN_MSVC
+#define __rte_constant(e) 0
+#else
+#define __rte_constant(e) __extension__(_
On Wed, Mar 20, 2024 at 02:33:35PM -0700, Tyler Retzlaff wrote:
> MSVC does not have a __builtin_constant_p intrinsic so provide
> __rte_constant(e) that expands false for MSVC and to the intrinsic for
> GCC.
>
> Signed-off-by: Tyler Retzlaff
> ---
> lib/eal/include/rte_common.h | 6 ++
> 1
PING for Review/ACK.
Come on fellow reviewers, it's only 5 lines of code!
The mempool library cannot build with MSVC without this patch series.
Other patches are also being held back, waiting for this MSVC compatible DPDK
macro for __builtin_constant_p().
The macro for MSVC can be improved as
> From: Stephen Hemminger [mailto:step...@networkplumber.org]
> Sent: Monday, 1 April 2024 00.03
>
> On Wed, 20 Mar 2024 14:33:35 -0700
> Tyler Retzlaff wrote:
>
> > +#ifdef RTE_TOOLCHAIN_MSVC
> > +#define __rte_constant(e) 0
> > +#else
> > +#define __rte_constant(e) __extension__(__builtin_cons
On Wed, 20 Mar 2024 14:33:35 -0700
Tyler Retzlaff wrote:
> +#ifdef RTE_TOOLCHAIN_MSVC
> +#define __rte_constant(e) 0
> +#else
> +#define __rte_constant(e) __extension__(__builtin_constant_p(e))
> +#endif
> +
I did some looking around and some other project have macros
for expressing constant ex
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com]
> Sent: Wednesday, 20 March 2024 22.34
>
> MSVC does not have a __builtin_constant_p intrinsic so provide
> __rte_constant(e) that expands false for MSVC and to the intrinsic for
> GCC.
>
> Signed-off-by: Tyler Retzlaff
> ---
Reviewed
MSVC does not have a __builtin_constant_p intrinsic so provide
__rte_constant(e) that expands false for MSVC and to the intrinsic for
GCC.
Signed-off-by: Tyler Retzlaff
---
lib/eal/include/rte_common.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/lib/eal/include/rte_common.h b/lib/e
8 matches
Mail list logo