summaryrefslogtreecommitdiff
path: root/cdbmake_hash.c
blob: f9dc3e551d8e16a6718fbcda8e1e022eb175b437 (plain)
1
2
3
4
5
6
7
8
9
10
#include "cdbmake.h"

uint32 cdbmake_hashadd(h,c)
uint32 h;
unsigned int c;
{
  h += (h << 5);
  h ^= (uint32) (unsigned char) c;
  return h;
}