| 10 | #include "dispatch.hpp" |
| 11 | |
| 12 | unsigned nextpow2(unsigned x) { |
| 13 | x = x - 1U; |
| 14 | x = x | (x >> 1U); |
| 15 | x = x | (x >> 2U); |
| 16 | x = x | (x >> 4U); |
| 17 | x = x | (x >> 8U); |
| 18 | x = x | (x >> 16U); |
| 19 | return x + 1U; |
| 20 | } |
no outgoing calls
no test coverage detected