Skip to content

Improve bitmap_empty and bitmap_full

Jia He linux-arch lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 of 3 patches 4 repliesIn review
  2. v13 patches 4 repliesSuperseded

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3linux/bitmap: Move 2 mask macro from bitmap.h to bitops.hinclude/linux/bitmap.h include/linux/bitops.h+4 -30 replies
2/3lib: Introduce 2 bit ops api: all_is_bit_{one,zero}lib/find_bit.c+50 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Improve bitmap_empty and bitmap_full

find_fisrt_{zero_}bit are too heavy for bitmap_{full,empty}. We don't need to calculate and compare the position of bitmap. This set of patch instroduces lightweight api and replaces the heavy one.

v2: Move the declarations to linux/bitops.h for compilation

Jia He (3):
Move 2 mask macro from bitmap.h to bitops.h Introduce 2 bit ops api: all_is_bit_{one,zero} Replace find_fisrt_{zero_}bit with the new lightweight api

 include/linux/bitmap.h |  7 ++-----
 include/linux/bitops.h |  7 +++++++
 lib/find_bit.c         | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+), 5 deletions(-)
Signature · 1 line
2.5.0