MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makePHMapHash

Function makePHMapHash

valdi_core/src/valdi_core/cpp/Utils/StringCache.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace Valdi {
15
16static size_t makePHMapHash(size_t hash) {
17 // Same function used by phmap internally, so that the find variant
18 // that takes a hash parameter matches what the hasher function does.
19 return phmap::phmap_mix<sizeof(size_t)>()(hash);
20}
21
22std::size_t StringCacheHash::operator()(const StringCacheEntry& entry) const {
23 return entry.impl->getHash();

Callers 2

removeStringMethod · 0.85
findEntryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected