MCPcopy Index your code
hub / github.com/ElementsProject/lightning / level_of

Function level_of

ccan/ccan/timer/timer.c:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static unsigned int level_of(const struct timers *timers, uint64_t time)
67{
68 uint64_t diff;
69
70 /* Level depends how far away it is. */
71 diff = time - timers->base;
72 return ilog64(diff / 2) / TIMER_LEVEL_BITS;
73}
74
75static void timer_add_raw(struct timers *timers, struct timer *t)
76{

Callers 1

timer_add_rawFunction · 0.85

Calls 1

ilog64Function · 0.85

Tested by

no test coverage detected