Re: [PATCH 01/12] eal: introduce more macro for bit definition

2024-01-24 Thread Thomas Monjalon
22/01/2024 04:57, Chengwen Feng: > Introduce macros: RTE_MBIT64/RTE_MBIT32, RTE_GENMASK64/RTE_GENMASK32, > and RTE_FIELD_GET64/RTE_FIELD_GET32. A bit of context and description would help. > +/** > + * Get the uint64_t value for a multiple bits set. > + * > + * @param val > + * The value may no

[PATCH 01/12] eal: introduce more macro for bit definition

2024-01-21 Thread Chengwen Feng
Introduce macros: RTE_MBIT64/RTE_MBIT32, RTE_GENMASK64/RTE_GENMASK32, and RTE_FIELD_GET64/RTE_FIELD_GET32. Signed-off-by: Chengwen Feng --- lib/eal/include/rte_bitops.h | 64 1 file changed, 64 insertions(+) diff --git a/lib/eal/include/rte_bitops.h b/lib/ea