cef7e3b057
fix prototype for hashuint
13 lines
198 B
C
13 lines
198 B
C
unsigned long
|
|
uc_sdbmhash(const unsigned char *str)
|
|
{
|
|
unsigned long hash = 0;
|
|
unsigned int c;
|
|
|
|
while ((c = *str++))
|
|
hash = c + (hash << 6) + (hash << 16) - hash;
|
|
|
|
return hash;
|
|
}
|
|
|