Home | History | Annotate | Download | only in ext2fs

Lines Matching full:hash

2  * dirhash.c -- Calculate the hash of a directory entry
21 * Keyed 32-bit hash function using TEA in a Davis-Meyer function
118 /* The old legacy hash */
122 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9;
132 hash = hash1 + (hash0 ^ (c * 7152373));
134 if (hash & 0x80000000) hash -= 0x7fffffff;
136 hash0 = hash;
177 * Returns the hash of a filename. If len is 0 and name is NULL, then
178 * this function can be used to test whether or not a hash version is
182 * uniquify a hash. If the seed is all zero's, then some default seed
185 * A particular hash version specifies whether or not the seed is
186 * represented, and whether or not the returned hash is 32 bits or 64
187 * bits. 32 bit hashes will return 0 for the minor hash.
194 __u32 hash;
201 /* Initialize the default seed for the hash checksum functions */
221 hash = dx_hack_hash(name, len, unsigned_flag);
234 hash = buf[1];
246 hash = buf[0];
253 *ret_hash = hash & ~1;