|
Blender V4.5
|
Go to the source code of this file.
Macros | |
| #define | ROTL32(x, y) |
| #define | BIG_CONSTANT(x) |
Functions | |
| static uint32_t | rotl32 (uint32_t x, int8_t r) |
| BLI_INLINE uint32_t | getblock32 (const uint32_t *p, int i) |
| BLI_INLINE uint64_t | getblock64 (const uint64_t *p, int i) |
| BLI_INLINE uint32_t | fmix32 (uint32_t h) |
| BLI_INLINE uint64_t | fmix64 (uint64_t k) |
| uint32_t | BLI_hash_mm3 (const uchar *data, size_t len, uint32_t seed) |
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.
| #define BIG_CONSTANT | ( | x | ) |
Definition at line 31 of file hash_mm3.cc.
Referenced by BLI_hash_mm3(), and util_murmur_hash3().
| uint32_t BLI_hash_mm3 | ( | const uchar * | data, |
| size_t | len, | ||
| uint32_t | seed ) |
Definition at line 73 of file hash_mm3.cc.
References ATTR_FALLTHROUGH, BLI_hash_mm3(), data, fmix32(), getblock32(), i, len(), and ROTL32.
Referenced by BLI_hash_mm3(), cryptomatte_determine_identifier(), and blender::bke::cryptomatte::CryptomatteHash::CryptomatteHash().
| BLI_INLINE uint32_t fmix32 | ( | uint32_t | h | ) |
Definition at line 51 of file hash_mm3.cc.
References BLI_INLINE, and fmix32().
Referenced by BLI_hash_mm3(), and fmix32().
| BLI_INLINE uint64_t fmix64 | ( | uint64_t | k | ) |
Definition at line 62 of file hash_mm3.cc.
References BIG_CONSTANT, BLI_INLINE, and fmix64().
Referenced by fmix64().
| BLI_INLINE uint32_t getblock32 | ( | const uint32_t * | p, |
| int | i ) |
Definition at line 39 of file hash_mm3.cc.
References BLI_INLINE, getblock32(), and i.
Referenced by BLI_hash_mm3(), and getblock32().
| BLI_INLINE uint64_t getblock64 | ( | const uint64_t * | p, |
| int | i ) |
Definition at line 44 of file hash_mm3.cc.
References BLI_INLINE, getblock64(), and i.
Referenced by getblock64().
|
inlinestatic |
Definition at line 27 of file hash_mm3.cc.