git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dba94c2
)
lib: bitmap: eliminate branch in __bitmap_shift_left
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Fri, 13 Feb 2015 22:36:16 +0000
(14:36 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:35 +0000
(21:21 -0800)
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>
lib/bitmap.c
patch
|
blob
|
history
diff --cc
lib/bitmap.c
Simple merge