Lines Matching refs:hash
27 #include <sys/hash.h>
35 * Simple implementation of the Murmur3-32 hash function.
46 uint32_t hash, k;
52 hash = seed;
63 hash ^= k;
64 hash = rol32(hash, 13);
65 hash *= 5;
66 hash += 0xe6546b64;
83 hash ^= k;
89 hash ^= (uint32_t)len;
90 hash ^= hash >> 16;
91 hash *= 0x85ebca6b;
92 hash ^= hash >> 13;
93 hash *= 0xc2b2ae35;
94 hash ^= hash >> 16;
95 return (hash);
106 uint32_t hash, k;
110 for (res = count, hash = seed; res > 0; res--, data++) {
115 hash ^= k;
116 hash = rol32(hash, 13);
117 hash *= 5;
118 hash += 0xe6546b64;
122 hash ^= (uint32_t)count;
123 hash ^= hash >> 16;
124 hash *= 0x85ebca6b;
125 hash ^= hash >> 13;
126 hash *= 0xc2b2ae35;
127 hash ^= hash >> 16;
128 return (hash);