Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

hashing

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.

Name: Anonymous 2011-12-04 13:07


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)
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List