MCPcopy Create free account
hub / github.com/ElementsProject/lightning / next

Function next

ccan/ccan/timer/test/run-add.c:10–15  ·  view source on GitHub ↗

0...17, 63, 64, 65, 127, 128, 129, 255, 256, 257, ... */

Source from the content-addressed store, hash-verified

8
9/* 0...17, 63, 64, 65, 127, 128, 129, 255, 256, 257, ... */
10static 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
17int main(void)
18{

Callers 15

test_writeFunction · 0.85
test_readFunction · 0.85
test_writeFunction · 0.85
test_readFunction · 0.85
add_data_fieldMethod · 0.85
singletonMethod · 0.85
mainFunction · 0.85
test_meshFunction · 0.85
next_planFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected