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

Function cmp_double

plugins/askrene/child/mcf.c:452–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452static int cmp_double(const double *a, const double *b, void *unused)
453{
454 if (*a < *b)
455 return -1;
456 if (*a > *b)
457 return 1;
458 return 0;
459}
460
461static double get_median(const tal_t *working_ctx,
462 const struct graph *graph,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected