RE: [RFC v3] eal: add bitset type

2024-02-02 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Friday, 2 February 2024 11.19 > > On 2024-02-01 09:04, Morten Brørup wrote: > >> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > >> Sent: Wednesday, 31 January 2024 19.46 > >> > >> On 2024-01-31 17:06, Stephen Hemminger wrote

Re: [RFC v3] eal: add bitset type

2024-02-02 Thread Mattias Rönnblom
On 2024-02-01 09:04, Morten Brørup wrote: From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] Sent: Wednesday, 31 January 2024 19.46 On 2024-01-31 17:06, Stephen Hemminger wrote: On Wed, 31 Jan 2024 14:13:01 +0100 Mattias Rönnblom wrote: [...] FYI - the linux kernel has a similar but mor

RE: [RFC v3] eal: add bitset type

2024-02-01 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Wednesday, 31 January 2024 19.46 > > On 2024-01-31 17:06, Stephen Hemminger wrote: > > On Wed, 31 Jan 2024 14:13:01 +0100 > > Mattias Rönnblom wrote: [...] > > FYI - the linux kernel has a similar but more complete set of > operati

Re: [RFC v3] eal: add bitset type

2024-01-31 Thread Mattias Rönnblom
On 2024-01-31 17:06, Stephen Hemminger wrote: On Wed, 31 Jan 2024 14:13:01 +0100 Mattias Rönnblom wrote: +/** + * @file + * RTE Bitset + * + * This file provides functions and macros for querying and + * manipulating sets of bits kept in arrays of @c uint64_t-sized + * elements. + * + * The bi

Re: [RFC v3] eal: add bitset type

2024-01-31 Thread Mattias Rönnblom
On 2024-01-31 17:02, Stephen Hemminger wrote: On Wed, 31 Jan 2024 14:13:01 +0100 Mattias Rönnblom wrote: Introduce a set of functions and macros that operate on sets of bits, kept in arrays of 64-bit elements. RTE bitset is designed for bitsets which are larger than what fits in a single mach

Re: [RFC v3] eal: add bitset type

2024-01-31 Thread Stephen Hemminger
On Wed, 31 Jan 2024 14:13:01 +0100 Mattias Rönnblom wrote: > +/** > + * @file > + * RTE Bitset > + * > + * This file provides functions and macros for querying and > + * manipulating sets of bits kept in arrays of @c uint64_t-sized > + * elements. > + * > + * The bits in a bitset are numbered fro

[RFC v3] eal: add bitset type

2024-01-31 Thread Mattias Rönnblom
Introduce a set of functions and macros that operate on sets of bits, kept in arrays of 64-bit elements. RTE bitset is designed for bitsets which are larger than what fits in a single machine word (i.e., 64 bits). For very large bitsets, the API may be a more appropriate choice. RFC v3: * Split