A Discrete-Event Network Simulator
API
ns3::Hash::Function::Murmur3Implementation Namespace Reference

Murmur3 hash implementation details. More...

Functions

uint32_t fmix (uint32_t h)
 Finalization mix - force all bits of a hash block to avalanche. More...
 
uint64_t fmix (uint64_t h)
 Finalization mix - force all bits of a hash block to avalanche. More...
 
uint32_t getblock (const uint32_t *p, std::size_t i)
 Block read. More...
 
uint64_t getblock (const uint64_t *p, std::size_t i)
 Block read. More...
 
void MurmurHash3_x64_128 (const void *key, const std::size_t len, const uint32_t seed, void *out)
 Initial and incremental hash. More...
 
void MurmurHash3_x86_128 (const void *key, const std::size_t len, uint32_t seed, void *out)
 Initial and incremental hash. More...
 
void MurmurHash3_x86_128_fin (const std::size_t len, uint32_t *seeds, void *out)
 Finalize a hash. More...
 
void MurmurHash3_x86_128_incr (const void *key, const std::size_t len, uint32_t *seeds, void *out)
 Initial and incremental hash. More...
 
void MurmurHash3_x86_32 (const void *key, std::size_t len, uint32_t seed, void *out)
 Initial and incremental hash. More...
 
void MurmurHash3_x86_32_fin (std::size_t len, uint32_t seed, void *out)
 Finalize a hash. More...
 
void MurmurHash3_x86_32_incr (const void *key, std::size_t len, uint32_t seed, void *out)
 Initial and incremental hash. More...
 
uint32_t rotl32 (uint32_t x, int8_t r)
 Barrel shift (rotate) left on 32 bits. More...
 
uint64_t rotl64 (uint64_t x, int8_t r)
 Barrel shift (rotate) left on 64 bits. More...
 

Detailed Description

Murmur3 hash implementation details.