is under the MIT license.
*/
#include "murmurhash.h"
+
#include "port/lang.h"
#if defined(__x86_64__)
__attribute__((__no_sanitize_undefined__))
#endif
#endif
+// clang-format off
uint64_t MurmurHash64A ( const void * key, int len, unsigned int seed )
{
const uint64_t m = 0xc6a4a7935bd1e995;
return h;
}
+// clang-format on
#elif defined(__i386__)
// 1. It will not work incrementally.
// 2. It will not produce the same results on little-endian and big-endian
// machines.
-
+// clang-format off
unsigned int MurmurHash2 ( const void * key, int len, unsigned int seed )
{
// 'm' and 'r' are mixing constants generated offline.
return h;
}
+// clang-format on
#else
//
// Same as MurmurHash2, but endian- and alignment-neutral.
// Half the speed though, alas.
-
+// clang-format off
unsigned int MurmurHashNeutral2 ( const void * key, int len, unsigned int seed )
{
const unsigned int m = 0x5bd1e995;
return h;
}
+// clang-format on
#endif