MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / whichbin

Function whichbin

src/include/unordered_map_concurrent.h:394–398  ·  view source on GitHub ↗

Which bin will this key always appear in?

Source from the content-addressed store, hash-verified

392
393 // Which bin will this key always appear in?
394 size_t whichbin (const KEY &key) {
395 size_t h = m_hash(key);
396 h = (size_t) murmur::fmix (uint64_t(h)); // scramble again
397 return h % BINS;
398 }
399
400};
401

Callers 4

findFunction · 0.85
insertFunction · 0.85
eraseFunction · 0.85
lock_binFunction · 0.85

Calls 1

fmixFunction · 0.85

Tested by

no test coverage detected