MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / HashCombine

Function HashCombine

IntelPresentMon/CommonUtilities/Hash.cpp:11–15  ·  view source on GitHub ↗

64-bit version

Source from the content-addressed store, hash-verified

9#if defined(_WIN64)
10 // 64-bit version
11 size_t HashCombine(size_t lhs, size_t rhs) noexcept
12 {
13 constexpr size_t kHashConstant = 0x517c'c1b7'2722'0a95ull;
14 return lhs ^ (rhs + kHashConstant + (lhs << 6) + (lhs >> 2));
15 }
16 size_t HashGuid(const _GUID& guid) noexcept
17 {
18 return HashCombine(reinterpret_cast<const uint64_t&>(guid.Data1),

Callers 4

HashGuidFunction · 0.85
DualHashFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected