folly::hash::hash_128_to_64

Reduce two 64-bit hashes into one.

Synopsis

Declared in <folly/hash/Hash.h>

constexpr
uint64_t
hash_128_to_64(
    uint64_t const upper,
    uint64_t const lower) noexcept;

Description

hash_128_to_64 uses the Hash128to64 function from Google's cityhash (under the MIT License).

Return Value

The combined 64-bit hash

Parameters

NameDescription
upperUpper 64-bit hash to combine
lowerLower 64-bit hash to combine