[0/3] bitmap: optimize small_const path for

Message ID 20221027043810.350460-1-yury.norov@gmail.com
Headers
Series bitmap: optimize small_const path for |

Message

Yury Norov Oct. 27, 2022, 4:38 a.m. UTC
  Make all inline bitmap functions __always_inline to ensure that
small_const optimization is always possible, and improve on it for
find_next_bit() and friends.

Yury Norov (3):
  bitmap: switch from inline to __always_inline
  bitmap: improve small_const case for find_next() functions
  bitmap: add tests for find_next_bit()

 include/asm-generic/bitsperlong.h |  12 +++
 include/linux/bitmap.h            |  46 +++++-----
 include/linux/cpumask.h           | 144 +++++++++++++++---------------
 include/linux/find.h              |  85 ++++++++----------
 include/linux/nodemask.h          |  86 +++++++++---------
 lib/test_bitmap.c                 |  23 ++++-
 6 files changed, 208 insertions(+), 188 deletions(-)
  

Comments

Yury Norov Nov. 3, 2022, 2:09 a.m. UTC | #1
Ping?

On Wed, Oct 26, 2022 at 09:38:07PM -0700, Yury Norov wrote:
> Make all inline bitmap functions __always_inline to ensure that
> small_const optimization is always possible, and improve on it for
> find_next_bit() and friends.
> 
> Yury Norov (3):
>   bitmap: switch from inline to __always_inline
>   bitmap: improve small_const case for find_next() functions
>   bitmap: add tests for find_next_bit()
> 
>  include/asm-generic/bitsperlong.h |  12 +++
>  include/linux/bitmap.h            |  46 +++++-----
>  include/linux/cpumask.h           | 144 +++++++++++++++---------------
>  include/linux/find.h              |  85 ++++++++----------
>  include/linux/nodemask.h          |  86 +++++++++---------
>  lib/test_bitmap.c                 |  23 ++++-
>  6 files changed, 208 insertions(+), 188 deletions(-)
> 
> -- 
> 2.34.1
  
Yury Norov Dec. 8, 2022, 3:32 a.m. UTC | #2
ping again

On Wed, Nov 02, 2022 at 07:09:49PM -0700, Yury Norov wrote:
> Ping?
> 
> On Wed, Oct 26, 2022 at 09:38:07PM -0700, Yury Norov wrote:
> > Make all inline bitmap functions __always_inline to ensure that
> > small_const optimization is always possible, and improve on it for
> > find_next_bit() and friends.
> > 
> > Yury Norov (3):
> >   bitmap: switch from inline to __always_inline
> >   bitmap: improve small_const case for find_next() functions
> >   bitmap: add tests for find_next_bit()
> > 
> >  include/asm-generic/bitsperlong.h |  12 +++
> >  include/linux/bitmap.h            |  46 +++++-----
> >  include/linux/cpumask.h           | 144 +++++++++++++++---------------
> >  include/linux/find.h              |  85 ++++++++----------
> >  include/linux/nodemask.h          |  86 +++++++++---------
> >  lib/test_bitmap.c                 |  23 ++++-
> >  6 files changed, 208 insertions(+), 188 deletions(-)
> > 
> > -- 
> > 2.34.1