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

Function seen_set_init

src/simhash/minhash.c:428–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426} seen_set_t;
427
428static void seen_set_init(seen_set_t *s) {
429 s->slots = cbm_calloc(CBM_MEM_CLASS_SEMANTIC, (size_t)(SEEN_SET_SIZE) * (sizeof(int64_t)));
430 s->cap = SEEN_SET_SIZE;
431 /* 0 means empty — node_ids are always > 0 */
432}
433
434static bool seen_set_insert(seen_set_t *s, int64_t node_id) {
435 if (!s->slots) {

Callers 1

cbm_lsh_queryFunction · 0.85

Calls 1

cbm_callocFunction · 0.85

Tested by

no test coverage detected