diff options
| author | Yury Norov <[email protected]> | 2022-09-19 21:05:58 +0000 |
|---|---|---|
| committer | Yury Norov <[email protected]> | 2022-10-01 17:22:58 +0000 |
| commit | fdae96a3fc7f70eb8ff9619550d7fa604719626a (patch) | |
| tree | 98dc830d9a0fde79da8df36e5e141d661e431a6b /lib/test_bitmap.c | |
| parent | lib/bitmap: introduce for_each_set_bit_wrap() macro (diff) | |
| download | kernel-fdae96a3fc7f70eb8ff9619550d7fa604719626a.tar.gz kernel-fdae96a3fc7f70eb8ff9619550d7fa604719626a.zip | |
lib/find: optimize for_each() macros
Moving an iterator of the macros inside conditional part of for-loop
helps to generate a better code. It had been first implemented in commit
7baac8b91f9871ba ("cpumask: make for_each_cpu_mask a bit smaller").
Now that cpumask for-loops are the aliases to bitmap loops, it's worth
to optimize them the same way.
Bloat-o-meter says:
add/remove: 8/12 grow/shrink: 147/592 up/down: 4876/-24416 (-19540)
Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions
