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

Function find_index

devtools/gossmap-compress.c:164–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static size_t find_index(const u64 *template, u64 val)
165{
166 for (size_t i = 0; i < tal_count(template); i++) {
167 if (template[i] == val)
168 return i;
169 }
170 abort();
171}
172
173/* All templates are of the same form. Output all the distinct values, then
174 * write out which one is used by each channel */

Callers 1

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected