GRPC Core  18.0.0
Macros | Functions
murmur_hash.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/gpr/murmur_hash.h"
#include <string.h>

Macros

#define ROTL32(x, r)   (((x) << (r)) | ((x) >> (32 - (r))))
 
#define FMIX32(h)
 

Functions

uint32_t gpr_murmur_hash3 (const void *key, size_t len, uint32_t seed)
 

Macro Definition Documentation

◆ FMIX32

#define FMIX32 (   h)
Value:
(h) ^= (h) >> 16; \
(h) *= 0x85ebca6b; \
(h) ^= (h) >> 13; \
(h) *= 0xc2b2ae35; \
(h) ^= (h) >> 16;

◆ ROTL32

#define ROTL32 (   x,
 
)    (((x) << (r)) | ((x) >> (32 - (r))))

Function Documentation

◆ gpr_murmur_hash3()

uint32_t gpr_murmur_hash3 ( const void *  key,
size_t  len,
uint32_t  seed 
)