Lines Matching refs:hash
11 /* One-at-a-Time Hash from https://www.burtleburtle.net/bob/hash/doobs.html */
12 static u32 hgsmi_hash_process(u32 hash, const u8 *data, int size)
15 hash += *data++;
16 hash += (hash << 10);
17 hash ^= (hash >> 6);
20 return hash;
23 static u32 hgsmi_hash_end(u32 hash)
25 hash += (hash << 3);
26 hash ^= (hash >> 11);
27 hash += (hash << 15);
29 return hash;