Re: [RFC v6 5/6] eal: add atomic bit operations

2024-05-04 Thread Mattias Rönnblom
On 2024-05-04 01:30, Tyler Retzlaff wrote: On Fri, May 03, 2024 at 08:41:09AM +0200, Mattias Rönnblom wrote: On 2024-05-02 07:57, Mattias Rönnblom wrote: Add atomic bit test/set/clear/assign/flip and test-and-set/clear/assign/flip functions. All atomic bit functions allow (and indeed, require)

Re: [RFC v6 5/6] eal: add atomic bit operations

2024-05-03 Thread Tyler Retzlaff
On Fri, May 03, 2024 at 08:41:09AM +0200, Mattias Rönnblom wrote: > On 2024-05-02 07:57, Mattias Rönnblom wrote: > >Add atomic bit test/set/clear/assign/flip and > >test-and-set/clear/assign/flip functions. > > > >All atomic bit functions allow (and indeed, require) the caller to > >specify a memor

Re: [RFC v6 5/6] eal: add atomic bit operations

2024-05-02 Thread Mattias Rönnblom
On 2024-05-02 07:57, Mattias Rönnblom wrote: Add atomic bit test/set/clear/assign/flip and test-and-set/clear/assign/flip functions. All atomic bit functions allow (and indeed, require) the caller to specify a memory order. RFC v6: * Have rte_bit_atomic_test() accept const-marked bitsets. RF

[RFC v6 5/6] eal: add atomic bit operations

2024-05-01 Thread Mattias Rönnblom
Add atomic bit test/set/clear/assign/flip and test-and-set/clear/assign/flip functions. All atomic bit functions allow (and indeed, require) the caller to specify a memory order. RFC v6: * Have rte_bit_atomic_test() accept const-marked bitsets. RFC v4: * Add atomic bit flip. * Mark macro-gene