diff options
| author | Andy Shevchenko <[email protected]> | 2023-07-10 18:49:20 +0300 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-07-10 18:27:44 +0100 |
| commit | 2b308e7176e366a52a07a49868e3b1a295e56785 (patch) | |
| tree | 4fe69f82ce75a9a58616459590397f5bedae9dea /tools/perf/scripts/python/bin | |
| parent | 440c47331bdb889e24128c75387c695ca81d9b9b (diff) | |
spi: Replace if-else-if by bitops and multiplications
Instead of if-else-if, simply call roundup_pow_of_two(BITS_PER_BYTES()).
Note, there is no division assumed as compiler may optimize it away.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions