Re: [PATCH v2 1/5] eal: extend bit manipulation functionality

2024-08-12 Thread Mattias Rönnblom
On 2024-08-12 13:16, Jack Bond-Preston wrote: On 09/08/2024 10:58, Mattias Rönnblom wrote: + +__RTE_GEN_BIT_TEST(, test,, 32) +__RTE_GEN_BIT_SET(, set,, 32) +__RTE_GEN_BIT_CLEAR(, clear,, 32) +__RTE_GEN_BIT_ASSIGN(, assign,, 32) +__RTE_GEN_BIT_FLIP(, flip,, 32) + +__RTE_GEN_BIT_TEST(, test,, 64

Re: [PATCH v2 1/5] eal: extend bit manipulation functionality

2024-08-12 Thread Jack Bond-Preston
On 09/08/2024 10:58, Mattias Rönnblom wrote: + +__RTE_GEN_BIT_TEST(, test,, 32) +__RTE_GEN_BIT_SET(, set,, 32) +__RTE_GEN_BIT_CLEAR(, clear,, 32) +__RTE_GEN_BIT_ASSIGN(, assign,, 32) +__RTE_GEN_BIT_FLIP(, flip,, 32) + +__RTE_GEN_BIT_TEST(, test,, 64) +__RTE_GEN_BIT_SET(, set,, 64) +__RTE_GEN_BIT

[PATCH v2 1/5] eal: extend bit manipulation functionality

2024-08-09 Thread Mattias Rönnblom
Add functionality to test and modify the value of individual bits in 32-bit or 64-bit words. These functions have no implications on memory ordering, atomicity and does not use volatile and thus does not prevent any compiler optimizations. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup