Lines Matching refs:hash
16 /* One-at-a-Time Hash from http://www.burtleburtle.net/bob/hash/doobs.html */
17 static u32 hgsmi_hash_process(u32 hash, const u8 *data, int size)
20 hash += *data++;
21 hash += (hash << 10);
22 hash ^= (hash >> 6);
25 return hash;
28 static u32 hgsmi_hash_end(u32 hash)
30 hash += (hash << 3);
31 hash ^= (hash >> 11);
32 hash += (hash << 15);
34 return hash;