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 not all 1s. > + * @param nr > + * The bit number in range of 0 to (64 - width of val). > + */ > +#define RTE_MBIT64(val, nr) (UINT64_C(val) << (nr)) I don't understand this macro. I think you mean that val is shifted by nr. Please revise the description.