18 const std::string_view& value, uint64_t& out_hash)
22 for (
auto c : value) hash = ((hash << 5) + hash) + c;
26 const std::string_view& value, uint8_t& out_hash)
34 const std::string_view& value, uint16_t& out_hash)
43 const std::string_view& value, uint32_t& out_hash)
47 out_hash = (hash & 0xffffffff) ^ ((hash >> 32) & 0xffffffff);
void reduced_hash(const std::string_view &value, uint8_t &hash)
hash function used by ts_hash_map.
#define MAKEWORD16B(__LOBYTE, __HILOBYTE)