Re: [PATCH 27/54] lib/bitmap: add bitmap_weight_{cmp, eq, gt, ge, lt, le} functions

From: Peter Zijlstra
Date: Mon Jan 24 2022 - 07:49:53 EST


On Mon, Jan 24, 2022 at 02:43:30PM +0200, Andy Shevchenko wrote:
> It may be other way around:
>
> if ((unsigned int)num > nbits)

Yes, that's my preferred method too :-)