MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / hash_pair_combine

Function hash_pair_combine

dnn/src/cuda/query_blocksize.cpp:12–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace {
11
12size_t hash_pair_combine(size_t x, size_t y) {
13 return y + 0x9e3779b9 + (x << 6) + (x >> 2);
14}
15
16//! stupid committee has no pair hash. Let's do it for them
17struct pairhash {

Callers 4

operator()Method · 0.70
hashMethod · 0.50
hashFunction · 0.50
hashFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected