Re: [PATCH 1/3] cpumask: add cpumask_weight_andnot()

2023-12-18 Thread Jacob Keller
On 12/17/2023 1:32 PM, Yury Norov wrote: > Similarly to cpumask_weight_and(), cpumask_weight_andnot() is a handy > helper that may help to avoid creating an intermediate mask just to > calculate number of bits that set in a 1st given mask, and clear in 2nd > one. > > Signed-off-by: Yury Norov

[PATCH 1/3] cpumask: add cpumask_weight_andnot()

2023-12-17 Thread Yury Norov
Similarly to cpumask_weight_and(), cpumask_weight_andnot() is a handy helper that may help to avoid creating an intermediate mask just to calculate number of bits that set in a 1st given mask, and clear in 2nd one. Signed-off-by: Yury Norov --- include/linux/bitmap.h | 12 include/