diff options
| author | Yury Norov <[email protected]> | 2018-06-08 00:10:41 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-06-08 00:34:39 +0000 |
| commit | ca1250bbd4e0b852cafbc94d4d2610171107b252 (patch) | |
| tree | 38d893c0658fb8db474ffe68934db200b412695a /lib/ucs2_string.c | |
| parent | get_maintainer: improve patch recognition (diff) | |
| download | kernel-ca1250bbd4e0b852cafbc94d4d2610171107b252.tar.gz kernel-ca1250bbd4e0b852cafbc94d4d2610171107b252.zip | |
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]>
Diffstat (limited to 'lib/ucs2_string.c')
0 files changed, 0 insertions, 0 deletions
