ARM: Avoid memcpy() in MurmurHash64A() if we are using 64 bit ARM.

However note that in architectures supporting 64 bit unaligned
accesses memcpy(...,...,8) is likely translated to a simple
word memory movement anyway.
This commit is contained in:
Salvatore Sanfilippo
2017-02-19 14:59:39 +00:00
parent 1e272a6b52
commit 72d6d64771
3 changed files with 5 additions and 1 deletions

View File

@ -401,7 +401,7 @@ uint64_t MurmurHash64A (const void * key, int len, unsigned int seed) {
uint64_t k;
#if (BYTE_ORDER == LITTLE_ENDIAN)
#ifdef __arm__
#if defined(__arm__) && !defined(__arm64__)
memcpy(&k,data,sizeof(uint64_t));
#else
k = *((uint64_t*)data);