28 template <
typename It>
31 static_assert(
sizeof(*begin) == 1,
"FNV deals with byte-sized (octet) input arrays only");
32 return std::accumulate(
33 begin, end, 14695981039346656037ull, [](
const unsigned long long& fingerprint,
auto x) {
34 return (fingerprint * 0x100000001b3ull) ^ x;
40 template <
typename It>
44 return (fp64 & UINT_MAX) ^ (fp64 >> 32);
uint32_t fowler_noll_vo_fingerprint64_32(It begin, It end)
Definition: fnv_hash.h:41
unsigned long long fowler_noll_vo_fingerprint64(It begin, It end)
Definition: fnv_hash.h:29