Re: [PATCH 09/12] lib: add fast path for find_next_*_bit()

2021-04-01 Thread Andy Shevchenko
On Thu, Apr 1, 2021 at 3:41 AM Yury Norov wrote: > > Similarly to bitmap functions, find_next_*_bit() users will benefit > if we'll handle a case of bitmaps that fit into a single word inline. > In the very best case, the compiler may replace a function call with > a few instructions. > > This is

[PATCH 09/12] lib: add fast path for find_next_*_bit()

2021-03-31 Thread Yury Norov
Similarly to bitmap functions, find_next_*_bit() users will benefit if we'll handle a case of bitmaps that fit into a single word inline. In the very best case, the compiler may replace a function call with a few instructions. This is the quite typical find_next_bit() user: unsigned int c

[PATCH 09/12] lib: add fast path for find_next_*_bit()

2021-03-21 Thread Yury Norov
Similarly to bitmap functions, find_next_*_bit() users will benefit if we'll handle a case of bitmaps that fit into a single word inline. In the very best case, the compiler may replace a function call with a few instructions. This is the quite typical find_next_bit() user: unsigned int c