folly::external::farmhash::Hash128to64

Hashes 128 input bits down to 64 bits of output.

Synopsis

Declared in <folly/external/farmhash/farmhash.h>

uint64_t
Hash128to64(uint128_t x);

Description

This is intended to be a reasonably good hash function. May change from time to time, may differ on different platforms, may differ depending on NDEBUG.

Return Value

The 64-bit hash of x.

Parameters

NameDescription
xThe 128-bit value to hash.