diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-09-20 00:05:58 +0300 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-10-01 20:22:58 +0300 |
commit | fdae96a3fc7f70eb8ff9619550d7fa604719626a (patch) | |
tree | 98dc830d9a0fde79da8df36e5e141d661e431a6b /lib/test_bitmap.c | |
parent | 4fe49b3b97c2640147c46519c2a6fdb06df34f5f (diff) | |
download | linux-fdae96a3fc7f70eb8ff9619550d7fa604719626a.tar.xz |
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 <yury.norov@gmail.com>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions