aboutsummaryrefslogtreecommitdiff
path: root/include/linux/byteorder
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-13 14:36:05 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:35 +0200
commit4e8ee1ec9f82e439d45e655b47b49b2866cc1cc4 (patch)
tree36aece86571e28df2df8d9836e1acbaa02fc4e36 /include/linux/byteorder
parent47894066de6270d11af8da2a1d7cd9a19d8f9180 (diff)
lib: bitmap: eliminate branch in __bitmap_shift_right
We can shift the bits from lower and upper into place before assembling dst[k]; moving the shift of upper 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/byteorder')
0 files changed, 0 insertions, 0 deletions