MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / lsh_seen_begin

Function lsh_seen_begin

src/simhash/minhash.c:531–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529}
530
531static 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
538static 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;

Callers 1

cbm_lsh_query_into_seenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected