Blender V5.3
hash_mm3.cc File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define ROTL32(x, y)
#define BIG_CONSTANT(x)

Functions

static uint32_t blender::rotl32 (uint32_t x, int8_t r)
BLI_INLINE uint32_t blender::getblock32 (const uint32_t *p, int i)
BLI_INLINE uint64_t blender::getblock64 (const uint64_t *p, int i)
BLI_INLINE uint32_t blender::fmix32 (uint32_t h)
BLI_INLINE uint64_t blender::fmix64 (uint64_t k)
uint32_t blender::BLI_hash_mm3 (const unsigned char *data, size_t len, uint32_t seed)

Detailed Description

Functions to compute Murmur3 hash key.

This Code is based on alShaders/Cryptomatte/MurmurHash3.h:

MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code.

Definition in file hash_mm3.cc.

Macro Definition Documentation

◆ BIG_CONSTANT

#define BIG_CONSTANT ( x)
Value:
(x##LLU)

Definition at line 34 of file hash_mm3.cc.

Referenced by blender::fmix64().

◆ ROTL32

#define ROTL32 ( x,
y )
Value:
ccl_device_inline uint32_t rotl32(const uint32_t x, int8_t r)

Definition at line 33 of file hash_mm3.cc.

Referenced by blender::BLI_hash_mm3(), and util_murmur_hash3().