hash.cpp: merge PR#3 in rokkithash code
This commit is contained in:
parent
310495e61c
commit
e48fc5ad3f
@ -61,7 +61,7 @@ uint32_t IRAM_ATTR rokkit(const char *data, int len) {
|
||||
case 3:
|
||||
hash += *((uint16_t *)data);
|
||||
hash ^= hash << 16;
|
||||
hash ^= ((signed char)data[2]) << 18;
|
||||
hash ^= ((unit32_t)data[2]) << 18;
|
||||
hash += hash >> 11;
|
||||
break;
|
||||
case 2:
|
||||
|
Loading…
Reference in New Issue
Block a user