2 * Copyright (C) 2009 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
11 uint32_t hashkit_default(const char *key
, size_t key_length
)
18 uint32_t val
= (uint32_t) *ptr
++;
20 value
+= (value
<< 10);
21 value
^= (value
>> 6);
23 value
+= (value
<< 3);
24 value
^= (value
>> 11);
25 value
+= (value
<< 15);