| 529 | } |
| 530 | |
| 531 | static void lsh_seen_begin(cbm_lsh_seen_t *s) { |
| 532 | if (++s->current == 0) { /* generation wrapped: every old stamp must go */ |
| 533 | memset(s->stamp, 0, sizeof(s->stamp)); |
| 534 | s->current = 1; |
| 535 | } |
| 536 | } |
| 537 | |
| 538 | static bool lsh_seen_insert(cbm_lsh_seen_t *s, int64_t node_id) { |
| 539 | uint32_t idx = (uint32_t)(node_id * KNUTH_MULT) & SEEN_SET_MASK; |
no outgoing calls
no test coverage detected