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

Name

Description

upper

Upper 64‐bit hash to combine

lower

Lower 64‐bit hash to combine

Created with MrDocs