MCPcopy Create free account
hub / github.com/alibaba/zvec / Key

Function Key

tests/core/algorithm/flat/flat_batch_topk_test.cc:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34constexpr size_t kCount = 99;
35constexpr uint64_t kKeyBase = uint64_t{1} << 48;
36uint64_t Key(size_t i) {
37 return kKeyBase + i * 37 + 11;
38}
39size_t Id(uint64_t key) {
40 return (key - kKeyBase - 11) / 37;
41}

Callers 4

CheckFunction · 0.70
CheckStaticFunction · 0.70
CheckStreamerFunction · 0.70
TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected