Commit 2b0e2f07 authored by Gert Wollny's avatar Gert Wollny
Browse files

gallium/cso: use a different hash function


Signed-off-by: Gert Wollny's avatarGert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu's avatarChia-I Wu <olvaffe@gmail.com>
parent 00093d0a
......@@ -54,8 +54,10 @@ static unsigned hash_key(const void *key, unsigned key_size)
/* I'm sure this can be improved on:
*/
for (i = 0; i < key_size/4; i++)
for (i = 0; i < key_size/4; i++) {
hash = (hash << 7) | (hash >> 25);
hash ^= ikey[i];
}
return hash;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment