folly::external::rapidhash_detail::rapidhash_mix

Multiply and xor mix function.

Synopsis

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

constexpr
uint64_t
rapidhash_mix(
    uint64_t A,
    uint64_t B) noexcept;

Description

Calculates the 128-bit product C = A * B.

Return Value

The 64-bit xor between the high and low 64 bits of C.

Parameters

NameDescription
A64-bit number.
B64-bit number.