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

Function fp_mix

tests/test_parallel.c:644–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642} graph_fp_t;
643
644static uint64_t fp_mix(uint64_t h, const char *s) {
645 for (const unsigned char *p = (const unsigned char *)(s ? s : "\x01"); *p; p++) {
646 h = (h ^ *p) * 1099511628211ULL; /* FNV-1a */
647 }
648 return (h ^ 0xffU) * 1099511628211ULL; /* field separator */
649}
650
651static uint64_t fp_mix_int(uint64_t h, long long v) {
652 char buf[32];

Callers 3

fp_mix_intFunction · 0.85
fp_visit_nodeFunction · 0.85
fp_visit_edgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected