MCPcopy Create free account
hub / github.com/Tencent/embedx / EncodeTwoEntry

Function EncodeTwoEntry

src/tools/graph/swing/swing.cc:27–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25constexpr size_t MAX_NUM_PAIR = 50000000; // magic number
26
27int_t EncodeTwoEntry(int_t k1, int_t k2) {
28 return (k1 + k2) * (k1 + k2 + 1) + k2;
29}
30
31void SampleContext(const std::vector<vec_pair_t>& contexts, int sample_thld,
32 std::vector<vec_pair_t>* sampled_contexts) {

Callers 2

FindUserPairMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected