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

2021-02-18 Thread Andy Shevchenko
On Wed, Feb 17, 2021 at 08:05:09PM -0800, 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. In the > very best case, the compiler may replace a function call with a few > instructions. > > This

[PATCH 11/14] lib: add fast path for find_next_*_bit()

2021-02-17 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. 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