3 #include "../Shared/funcannotations.h"
6 return (x << r) | (x >> (32 - r));
9 #define ROTL32(x, y) rotl32(x, y)
12 const uint8_t* data = (
const uint8_t*)key;
13 const int nblocks = len / 4;
17 const uint32_t c1 = 0xcc9e2d51;
18 const uint32_t c2 = 0x1b873593;
23 const uint32_t* blocks = (
const uint32_t*)(data + nblocks * 4);
25 for (
int i = -nblocks; i; i++) {
26 uint32_t k1 = blocks[i];
34 h1 = h1 * 5 + 0xe6546b64;
40 const uint8_t* tail = (
const uint8_t*)(data + nblocks * 4);
FORCE_INLINE DEVICE uint32_t MurmurHash3Impl(const void *key, int len, uint32_t seed)
FORCE_INLINE DEVICE uint32_t rotl32(uint32_t x, int8_t r)