45 inline T
fast_hash(
const void* aInput, std::size_t aLength);
52 uint32_t hash = 2166136261u;
53 const uint8_t* octet =
static_cast<const uint8_t*
>(aInput);
54 auto endOctet = octet + aLength;
55 while (octet != endOctet)
57 hash = hash ^ *octet++;
58 hash = hash * 16777619u;
66 uint64_t hash = 14695981039346656037ull;
67 const uint8_t* octet =
static_cast<const uint8_t*
>(aInput);
68 auto endOctet = octet + aLength;
69 while (octet != endOctet)
71 hash = hash ^ *octet++;
72 hash = hash * 1099511628211ull;
79 inline T
fast_hash(
const void* aInput, std::size_t aLength)
81 return detail::fast_hash<T>(aInput, aLength);
84 inline uint32_t
fast_hash(
const void* aInput, std::size_t aLength)
86 return fast_hash<uint32_t>(aInput, aLength);
uint64_t fast_hash< uint64_t >(const void *aInput, std::size_t aLength)
T fast_hash(const void *aInput, std::size_t aLength)
uint32_t fast_hash< uint32_t >(const void *aInput, std::size_t aLength)
T fast_hash(const void *aInput, std::size_t aLength)