]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bitmap: add bitmap_weight_from()
authorYury Norov <ynorov@nvidia.com>
Mon, 22 Dec 2025 19:11:37 +0000 (14:11 -0500)
committerYury Norov <ynorov@nvidia.com>
Mon, 23 Mar 2026 17:33:51 +0000 (13:33 -0400)
commitbf31ddc14f8c6bcd4987c31fe2bc9e93e433b41a
treed346d3e6372cd063d9d28b745381be13a206badf
parent6c88ba561cfc2c5f35067519f46310059a9dc39a
bitmap: add bitmap_weight_from()

The function calculates a Hamming weight of a bitmap starting from an
arbitrary bit.

Signed-off-by: Yury Norov <ynorov@nvidia.com>
include/linux/bitmap.h
lib/test_bitmap.c