Lines Matching full:hash
7 #include <linux/hash.h>
10 * Routines for hashing strings of bytes to a 32-bit hash value.
12 * These hash functions are NOT GUARANTEED STABLE between kernel
18 * malicious inputs; much slower hash functions are required for that.
29 * unsigned long hash = init_name_hash;
31 * hash = partial_name_hash(tolower(*p++), hash);
32 * hash = end_name_hash(hash);
35 * abuses it to hash 16-bit values.
38 /* Hash courtesy of the R5 hash in reiserfs modulo sign bits */
41 /* partial hash update function. Assume roughly 4 bits per character */
51 * that the msbits make a good hash table index.
53 static inline unsigned int end_name_hash(unsigned long hash) in end_name_hash() argument
55 return hash_long(hash, 32); in end_name_hash()
62 * this computes a different hash function much faster.
69 * A hash_len is a u64 with the hash of a string in the low
74 #define hashlen_create(hash, len) ((u64)(len)<<32 | (u32)(hash)) argument
76 /* Return the "hash_len" (hash and length) of a null-terminated string */