MCPcopy Create free account
hub / github.com/antirez/ds4 / cursor_has

Function cursor_has

ds4.c:1481–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1479 uint32_t intersection = 0;
1480 for (uint32_t a = 0; a < p->n_expert_used; a++) {
1481 for (uint32_t b = 0; b < p->n_expert_used; b++) {
1482 if (p->prev_selected[il][a] == selected[b]) {
1483 intersection++;
1484 break;
1485 }
1486 }
1487 }
1488 const uint32_t union_size = 2u * p->n_expert_used - intersection;
1489 p->adjacent_pairs[il]++;
1490 p->adjacent_overlap_sum[il] +=

Callers 3

cursor_readFunction · 0.85
cursor_skipFunction · 0.85
cursor_stringFunction · 0.85

Calls 1

cursor_errorFunction · 0.85

Tested by

no test coverage detected