// SPDX-License-Identifier: LGPL-2.1+ /* * MurmurHash3 was written by Austin Appleby, and is placed in the public * domain. The author hereby disclaims copyright to this source code. * * Adapted by John Wiele ([email protected]). */ #include "murmurhash3.h" #include <linux/unaligned.h> static inline u64 rotl64(u64 x, s8 r) { … } #define ROTL64(x, y) … /* Finalization mix - force all bits of a hash block to avalanche */ static __always_inline u64 fmix64(u64 k) { … } void murmurhash3_128(const void *key, const int len, const u32 seed, void *out) { … }