Re: [PATCH 11/13] lib: add fast path for find_first_*_bit() and find_last_bit()

2021-04-06 Thread Yury Norov
On Tue, Apr 06, 2021 at 09:03:27AM -0700, Guenter Roeck wrote: > On Mon, Mar 15, 2021 at 06:54:22PM -0700, Yury Norov wrote: > > Similarly to bitmap functions, users would benefit if we'll handle > > a case of small-size bitmaps that fit into a single word. > > > > While here, move the find_last_b

Re: [PATCH 11/13] lib: add fast path for find_first_*_bit() and find_last_bit()

2021-04-06 Thread Guenter Roeck
On Mon, Mar 15, 2021 at 06:54:22PM -0700, Yury Norov wrote: > Similarly to bitmap functions, users would benefit if we'll handle > a case of small-size bitmaps that fit into a single word. > > While here, move the find_last_bit() declaration to bitops/find.h > where other find_*_bit() functions si

[PATCH 11/13] lib: add fast path for find_first_*_bit() and find_last_bit()

2021-03-15 Thread Yury Norov
Similarly to bitmap functions, users would benefit if we'll handle a case of small-size bitmaps that fit into a single word. While here, move the find_last_bit() declaration to bitops/find.h where other find_*_bit() functions sit. Signed-off-by: Yury Norov --- include/asm-generic/bitops/find.h