Re: [PATCH v6 00/12] lib/find_bit: fast path for small bitmaps

2021-04-01 Thread Andrew Morton
On Thu, 1 Apr 2021 12:50:31 +0300 Andy Shevchenko wrote: > > I normally don't have a lot of material for asm-generic either, half > > the time there are no pull requests at all for a given release. I would > > expect future changes to the bitmap implementation to only need > > an occasional bugf

Re: [PATCH v6 00/12] lib/find_bit: fast path for small bitmaps

2021-04-01 Thread Andy Shevchenko
On Thu, Apr 1, 2021 at 12:29 PM Arnd Bergmann wrote: > > On Thu, Apr 1, 2021 at 11:16 AM Andy Shevchenko > wrote: > > > > On Thu, Apr 1, 2021 at 3:36 AM Yury Norov wrote: > > > > > > Bitmap operations are much simpler and faster in case of small bitmaps > > > which fit into a single word. In lin

Re: [PATCH v6 00/12] lib/find_bit: fast path for small bitmaps

2021-04-01 Thread Arnd Bergmann
On Thu, Apr 1, 2021 at 11:16 AM Andy Shevchenko wrote: > > On Thu, Apr 1, 2021 at 3:36 AM Yury Norov wrote: > > > > Bitmap operations are much simpler and faster in case of small bitmaps > > which fit into a single word. In linux/bitmap.c we have a machinery that > > allows compiler to replace ac

Re: [PATCH v6 00/12] lib/find_bit: fast path for small bitmaps

2021-04-01 Thread Andy Shevchenko
On Thu, Apr 1, 2021 at 3:36 AM Yury Norov wrote: > > Bitmap operations are much simpler and faster in case of small bitmaps > which fit into a single word. In linux/bitmap.c we have a machinery that > allows compiler to replace actual function call with a few instructions > if bitmaps passed into

[PATCH v6 00/12] lib/find_bit: fast path for small bitmaps

2021-03-31 Thread Yury Norov
Bitmap operations are much simpler and faster in case of small bitmaps which fit into a single word. In linux/bitmap.c we have a machinery that allows compiler to replace actual function call with a few instructions if bitmaps passed into the function are small and their size is known at compile ti