Home | History | Annotate | Download | only in common

Lines Matching full:hash

43 uint32_t SuperFastHash (const char * data, int len, uint32_t hash) {
54 hash += get16bits (data);
55 tmp = (get16bits (data+2) << 11) ^ hash;
56 hash = (hash << 16) ^ tmp;
58 hash += hash >> 11;
63 case 3: hash += get16bits (data);
64 hash ^= hash << 16;
65 hash ^= ((signed char)data[sizeof (uint16_t)]) << 18;
66 hash += hash >> 11;
68 case 2: hash += get16bits (data);
69 hash ^= hash << 11;
70 hash += hash >> 17;
72 case 1: hash += (signed char)*data;
73 hash ^= hash << 10;
74 hash += hash >> 1;
78 hash ^= hash << 3;
79 hash += hash >> 5;
80 hash ^= hash << 4;
81 hash += hash >> 17;
82 hash ^= hash << 25;
83 hash += hash >> 6;
85 return hash;