Re: [RESEND PATCH v2 0/6] lib/find_bit: fast path for small bitmaps

2021-02-17 Thread Andy Shevchenko
On Tue, Feb 16, 2021 at 10:00:42AM -0800, Yury Norov wrote: > On Tue, Feb 16, 2021 at 11:14:23AM +0200, Andy Shevchenko wrote: > > On Mon, Feb 15, 2021 at 01:30:44PM -0800, Yury Norov wrote: > > > [add David Laight ] > > > > > > On Sat, Jan 30, 2021 at 11:17:11AM -0800, Yury Norov wrote: > > > >

Re: [RESEND PATCH v2 0/6] lib/find_bit: fast path for small bitmaps

2021-02-16 Thread Yury Norov
On Tue, Feb 16, 2021 at 11:14:23AM +0200, Andy Shevchenko wrote: > On Mon, Feb 15, 2021 at 01:30:44PM -0800, Yury Norov wrote: > > [add David Laight ] > > > > On Sat, Jan 30, 2021 at 11:17:11AM -0800, Yury Norov wrote: > > > Bitmap operations are much simpler and faster in case of small bitmaps >

Re: [RESEND PATCH v2 0/6] lib/find_bit: fast path for small bitmaps

2021-02-16 Thread Andy Shevchenko
On Mon, Feb 15, 2021 at 01:30:44PM -0800, Yury Norov wrote: > [add David Laight ] > > On Sat, Jan 30, 2021 at 11:17:11AM -0800, Yury Norov wrote: > > Bitmap operations are much simpler and faster in case of small bitmaps > > which fit into a single word. In linux/bitmap.h we have a machinery that

Re: [RESEND PATCH v2 0/6] lib/find_bit: fast path for small bitmaps

2021-02-15 Thread Yury Norov
[add David Laight ] On Sat, Jan 30, 2021 at 11:17:11AM -0800, Yury Norov wrote: > Bitmap operations are much simpler and faster in case of small bitmaps > which fit into a single word. In linux/bitmap.h we have a machinery that > allows compiler to replace actual function call with a few instruct

[RESEND PATCH v2 0/6] lib/find_bit: fast path for small bitmaps

2021-01-30 Thread Yury Norov
Bitmap operations are much simpler and faster in case of small bitmaps which fit into a single word. In linux/bitmap.h 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