36 for (
size_t i = 0;
i < size; ++
i) {
37 hash ^=
static_cast<u64>(
static_cast<unsigned char>(data[
i]));
std::uint64_t u64
64 bit unsigned integer
namespace for basic c++ utilities
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
u64 fnv1a_hash(const char *data, size_t size)
Compute the FNV-1a hash of a given data.