commit | 6d874eca6595629258a5d9af237c5ae53a9544e1 | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <[email protected]> | Fri Feb 13 14:36:16 2015 -0800 |
committer | Linus Torvalds <[email protected]> | Fri Feb 13 21:21:35 2015 -0800 |
tree | 444d682c304f39d2071ad1445ec0582abf5e46a6 | |
parent | dba94c2553da1928303c2a6c6410247c88cafc1d [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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>