lib/find: introduce find_nth_and_andnot_bit
authorYury Norov <yury.norov@gmail.com>
Sat, 21 Jan 2023 04:24:28 +0000 (20:24 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Feb 2023 02:20:00 +0000 (18:20 -0800)
commit43245117806ff8914e37327b610fc08b5ddedc91
tree916c35e8e73811ab05db9d066e9cf7f423d56090
parent383d9f87a06dd923c4fd0fdcb65b58258851f545
lib/find: introduce find_nth_and_andnot_bit

In the following patches the function is used to implement in-place bitmaps
traversing without storing intermediate result in temporary bitmaps.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Acked-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Peter Lafreniere <peter@n8pjl.ca>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/find.h
lib/find_bit.c