#ifndef MEMGRAPH_UTILS_HASHING_FNV_FNV_HPP #define MEMGRAPH_UTILS_HASHING_FNV_FNV_HPP #include #include #include "utils/platform.hpp" #include "fnv32.hpp" #include "fnv64.hpp" // fnv1a is recommended so use it as a default implementation. also use the // platform specific version of the function #ifdef MEMGRAPH64 template uint64_t fnv(const T& data) { return fnv1a64(data); } #elif template uint32_t fnv(const T& data) { return fnv1a32(data); } #endif #endif