diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-09-19 14:05:58 -0700 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-10-01 10:22:58 -0700 |
commit | fdae96a3fc7f70eb8ff9619550d7fa604719626a (patch) | |
tree | 98dc830d9a0fde79da8df36e5e141d661e431a6b /lib/find_bit.c | |
parent | lib/bitmap: introduce for_each_set_bit_wrap() macro (diff) | |
download | linux-dev-fdae96a3fc7f70eb8ff9619550d7fa604719626a.tar.xz linux-dev-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 <yury.norov@gmail.com>
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions