lib/find_bit: Introduce find_next_andnot_bit()
authorValentin Schneider <vschneid@redhat.com>
Mon, 3 Oct 2022 15:34:17 +0000 (16:34 +0100)
committerYury Norov <yury.norov@gmail.com>
Thu, 6 Oct 2022 12:57:36 +0000 (05:57 -0700)
commit90d482908eedd56f01a707325aa541cf9c40f936
tree26cec02bff42dd83de558ba1b7579185726554b0
parent78e5a3399421ad79fc024e6d78e2deb7809d26af
lib/find_bit: Introduce find_next_andnot_bit()

In preparation of introducing for_each_cpu_andnot(), add a variant of
find_next_bit() that negate the bits in @addr2 when ANDing them with the
bits in @addr1.

Signed-off-by: Valentin Schneider <vschneid@redhat.com>
include/linux/find.h
lib/find_bit.c