]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2423eadfe134cead1ce506015b16d9aa5973a31
tree26cec02bff42dd83de558ba1b7579185726554b0
parentb55d5df4cb41fd35a7e41a24f57859008bf0c093
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