0...17, 63, 64, 65, 127, 128, 129, 255, 256, 257, ... */
| 8 | |
| 9 | /* 0...17, 63, 64, 65, 127, 128, 129, 255, 256, 257, ... */ |
| 10 | static uint64_t next(uint64_t base) |
| 11 | { |
| 12 | if (base > 16 && ((base - 1) & ((base - 1) >> 1)) == 0) |
| 13 | return base * 2 - 3; |
| 14 | return base+1; |
| 15 | } |
| 16 | |
| 17 | int main(void) |
| 18 | { |
no outgoing calls
no test coverage detected