Lines Matching defs:hash
195 * Return a hash which is built by manipulating each byte in the
196 * supplied data. The hash logic follows the approach suggested in the
197 * FNV hash.
204 uint64_t hash = HASH_64_INIT;
207 hash *= HASH_64_PRIME;
208 hash ^= (uint64_t)*start++;
211 return (hash);
216 * Return a hash which is built by manipulating each byte in the
217 * supplied string. The hash logic follows the approach suggested in
218 * the FNV hash.
224 uint64_t hash = HASH_64_INIT;
227 hash *= HASH_64_PRIME;
228 hash ^= (uint64_t)*p++;
231 return (hash);
271 uint64_t (*hash)(const void *))
284 hdl->dh_hash = hash ? hash : hash_addr;
289 * Get a value from the hash. Null is returned if the key cannot be
307 * Put an entry into the hash. Null is returned if this key was not