lkml.org 
[lkml]   [2022]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] lib/bitmap: Make count and length parameters unsigned
On Thu, Jul 14, 2022 at 06:42:07PM +0200, Paul Menzel wrote:
> Counts and the length are non-negative, so make them unsigned, and adapt the
> while condition in `__bitmap_set()` and `__bitmap_clear()` accordingly.
>
> For `__bitmap_set()` six less intstructions are used as a result:

You may check this by doing

make allyesconfig
make
cp vmlinux.o old
# apply your patch
make
cp vmlinux.o new
scripts/bloat-o-meter old new

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2022-07-14 18:51    [W:0.053 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site