aboutsummaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-13 14:36:16 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:37 +0200
commit2dc5a5a532a5992c47892b1f84ffbcfa4ff36786 (patch)
tree74e9a84c3f96fd926afd4a7622a5b9e8cb4e6387 /include/linux/string.h
parentfcfcf9fea498504630b0585a3c18add8c1c0fdc9 (diff)
lib: bitmap: eliminate branch in __bitmap_shift_left
We can shift the bits from lower and upper into place before assembling dst[k + off]; moving the shift of lower into the branch where we already know that rem is non-zero allows us to remove a conditional. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions