public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] bitmap: optimize small_const path for
@ 2022-10-27  4:38 Yury Norov
  2022-10-27  4:38 ` [PATCH 1/3] bitmap: switch from inline to __always_inline Yury Norov
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Yury Norov @ 2022-10-27  4:38 UTC (permalink / raw)
  To: linux-kernel, linux-arch, Arnd Bergmann, Andy Shevchenko,
	Rasmus Villemoes
  Cc: Yury Norov

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-08  3:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27  4:38 [PATCH 0/3] bitmap: optimize small_const path for Yury Norov
2022-10-27  4:38 ` [PATCH 1/3] bitmap: switch from inline to __always_inline Yury Norov
2022-10-27  4:38 ` [PATCH 2/3] bitmap: improve small_const case for find_next() functions Yury Norov
2022-10-27  4:38 ` [PATCH 3/3] bitmap: add tests for find_next_bit() Yury Norov
2022-11-03  2:09 ` [PATCH 0/3] bitmap: optimize small_const path for Yury Norov
2022-12-08  3:32   ` Yury Norov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox