MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ckh_pointer_hash

Function ckh_pointer_hash

deps/jemalloc/src/ckh.c:555–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555void
556ckh_pointer_hash(const void *key, size_t r_hash[2]) {
557 union {
558 const void *v;
559 size_t i;
560 } u;
561
562 assert(sizeof(u.v) == sizeof(u.i));
563 u.v = key;
564 hash(&u.i, sizeof(u.i), 0xd983396eU, r_hash);
565}
566
567bool
568ckh_pointer_keycomp(const void *k1, const void *k2) {

Callers

nothing calls this directly

Calls 1

hashFunction · 0.50

Tested by

no test coverage detected