RE: [PATCH v4] bitmap: add scan from offset function

2023-07-03 Thread Dumitrescu, Cristian
> -Original Message- > From: Volodymyr Fialko > Sent: Monday, July 3, 2023 10:31 AM > To: dev@dpdk.org; Dumitrescu, Cristian > Cc: jer...@marvell.com; ano...@marvell.com; tho...@monjalon.net; > Volodymyr Fialko > Subject: [PATCH v4] bitmap: add scan

[PATCH v4] bitmap: add scan from offset function

2023-07-03 Thread Volodymyr Fialko
Currently, in the case when we search for a bit set after a particular value, the bitmap has to be scanned from the beginning and rte_bitmap_scan() has to be called multiple times until we hit the value. Add a new rte_bitmap_scan_from_offset() function to initialize scan state at the given offset