Name: Anonymous 2011-12-04 12:34
tell me a good and fast hashing algorithm /prog/. I will be using it to compare relatively big data with each other.
long long hash(char *b)
{
long long hash = 0;
int l = strlen(b);
for(;l>=0;--l)
hash = b[l] + h << 5;
h ^= (h >> 20) ^ (h >> 12);
return h ^ (h >> 7) ^ (h >> 4)
}