]> Git Repo - linux.git/commit - lib/bitmap.c
lib/bitmap.c: micro-optimization for __bitmap_complement()
authorYury Norov <[email protected]>
Fri, 8 Jun 2018 00:10:41 +0000 (17:10 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:39 +0000 (17:34 -0700)
commitca1250bbd4e0b852cafbc94d4d2610171107b252
tree38d893c0658fb8db474ffe68934db200b412695a
parent0455c74788fd5aad4399f00e3fbbb7e87450ca58
lib/bitmap.c: micro-optimization for __bitmap_complement()

Use BITS_TO_LONGS() macro to avoid calculation of reminder (bits %
BITS_PER_LONG) On ARM64 it saves 5 instruction for function - 16 before
and 11 after.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Yury Norov <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/bitmap.c
This page took 0.052765 seconds and 4 git commands to generate.