]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bitmap: introduce bitmap_weighted_xor()
authorYury Norov <ynorov@nvidia.com>
Mon, 2 Mar 2026 01:11:55 +0000 (20:11 -0500)
committerYury Norov <ynorov@nvidia.com>
Thu, 2 Apr 2026 00:03:07 +0000 (20:03 -0400)
commitd57e74f10461b80c77d1678f646720f616fb8553
tree8b07ccd943130cf5a391cbb65168e3da6acef711
parent95d324fb1b48434f4c659e4c245c3bdeecdff22c
bitmap: introduce bitmap_weighted_xor()

The function helps to XOR bitmaps and calculate Hamming weight of
the result in one pass.

Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
include/linux/bitmap.h
lib/bitmap.c