Lines Matching defs:hash
29 #include <sys/hash.h>
37 * Simple implementation of the Murmur3-32 hash function.
48 uint32_t hash, k;
54 hash = seed;
65 hash ^= k;
66 hash = rol32(hash, 13);
67 hash *= 5;
68 hash += 0xe6546b64;
85 hash ^= k;
91 hash ^= (uint32_t)len;
92 hash ^= hash >> 16;
93 hash *= 0x85ebca6b;
94 hash ^= hash >> 13;
95 hash *= 0xc2b2ae35;
96 hash ^= hash >> 16;
97 return (hash);
108 uint32_t hash, k;
112 for (res = count, hash = seed; res > 0; res--, data++) {
117 hash ^= k;
118 hash = rol32(hash, 13);
119 hash *= 5;
120 hash += 0xe6546b64;
124 hash ^= (uint32_t)count;
125 hash ^= hash >> 16;
126 hash *= 0x85ebca6b;
127 hash ^= hash >> 13;
128 hash *= 0xc2b2ae35;
129 hash ^= hash >> 16;
130 return (hash);