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

2021-01-29 Thread Andy Shevchenko
On Fri, Jan 29, 2021 at 10:54 PM Yury Norov wrote: > On Fri, Jan 29, 2021 at 12:45 PM Yury Norov wrote: > > > > Bitmap operations are much simpler and faster in case of small bitmaps, > > whicn > > fit into a single word. In linux/bitmap.h we have a machinery that allows > > compiler to replace

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

2021-01-29 Thread Yury Norov
On Fri, Jan 29, 2021 at 12:45 PM Yury Norov wrote: > > Bitmap operations are much simpler and faster in case of small bitmaps, whicn > 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 in

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

2021-01-29 Thread Yury Norov
Bitmap operations are much simpler and faster in case of small bitmaps, whicn 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 is small and its size is known at compile time

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

2021-01-20 Thread Yury Norov
Bitmap operations are much simpler and faster in case of small bitmaps, whicn 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 is small and its size is known at compile time