MCPcopy Create free account
hub / github.com/catboost/catboost / IntHashImpl

Function IntHashImpl

util/digest/numeric.h:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 */
12
13static constexpr ui8 IntHashImpl(ui8 key8) noexcept {
14 size_t key = key8;
15
16 key += ~(key << 15);
17 key ^= (key >> 10);
18 key += (key << 3);
19 key ^= (key >> 6);
20 key += ~(key << 11);
21 key ^= (key >> 16);
22
23 return static_cast<ui8>(key);
24}
25
26static constexpr ui16 IntHashImpl(ui16 key16) noexcept {
27 size_t key = key16;

Callers 1

IntHashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected