Merge branch 'roam-murmurhash-endian' of http://github.com/ppentchev/kakoune
This commit is contained in:
commit
ce75867e44
|
@ -41,7 +41,7 @@ size_t hash_data(const char* input, size_t len)
|
||||||
for (ptrdiff_t i = -nblocks; i; ++i)
|
for (ptrdiff_t i = -nblocks; i; ++i)
|
||||||
{
|
{
|
||||||
uint32_t key;
|
uint32_t key;
|
||||||
memcpy(&key, blocks + 4*i, 4);
|
key = (blocks[4*i + 3] << 24) | (blocks[4*i + 2] << 16) | (blocks[4*i + 1] << 8) | blocks[4*i];
|
||||||
key *= c1;
|
key *= c1;
|
||||||
key = rotl(key, 15);
|
key = rotl(key, 15);
|
||||||
key *= c2;
|
key *= c2;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user