Blender
V3.3
|
#include "BLI_sys_types.h"
Go to the source code of this file.
Classes | |
struct | BLI_HashMurmur2A |
Typedefs | |
typedef struct BLI_HashMurmur2A | BLI_HashMurmur2A |
Functions | |
void | BLI_hash_mm2a_init (BLI_HashMurmur2A *mm2, uint32_t seed) |
void | BLI_hash_mm2a_add (BLI_HashMurmur2A *mm2, const unsigned char *data, size_t len) |
void | BLI_hash_mm2a_add_int (BLI_HashMurmur2A *mm2, int data) |
uint32_t | BLI_hash_mm2a_end (BLI_HashMurmur2A *mm2) |
uint32_t | BLI_hash_mm2 (const unsigned char *data, size_t len, uint32_t seed) |
typedef struct BLI_HashMurmur2A BLI_HashMurmur2A |
Non-incremental version, quicker for small keys.
Definition at line 99 of file hash_mm2a.c.
References ATTR_FALLTHROUGH, data, len, MM2A_M, MM2A_MIX, MM2A_MIX_FINALIZE, and seed.
Referenced by BLI_ghashutil_inthash_p_murmur(), BLI_ghashutil_strhash_p_murmur(), BLI_ghashutil_uinthash_v4_murmur(), and FrsMaterial_hash().
void BLI_hash_mm2a_add | ( | BLI_HashMurmur2A * | mm2, |
const unsigned char * | data, | ||
size_t | len | ||
) |
Definition at line 69 of file hash_mm2a.c.
References data, BLI_HashMurmur2A::hash, len, MM2A_MIX, mm2a_mix_tail(), and BLI_HashMurmur2A::size.
Referenced by BLI_hash_mm2a_add_int(), GPUCodegen::generate_graphs(), blender::ed::spreadsheet::spreadsheet_context_modifier_hash(), blender::ed::spreadsheet::spreadsheet_context_node_hash(), blender::ed::spreadsheet::spreadsheet_context_object_hash(), and TEST().
void BLI_hash_mm2a_add_int | ( | BLI_HashMurmur2A * | mm2, |
int | data | ||
) |
Definition at line 84 of file hash_mm2a.c.
References BLI_hash_mm2a_add(), and data.
Referenced by GPUCodegen::GPUCodegen(), blender::ed::spreadsheet::spreadsheet_context_hash(), and TEST().
uint32_t BLI_hash_mm2a_end | ( | BLI_HashMurmur2A * | mm2 | ) |
Definition at line 89 of file hash_mm2a.c.
References BLI_HashMurmur2A::hash, MM2A_MIX, MM2A_MIX_FINALIZE, BLI_HashMurmur2A::size, and BLI_HashMurmur2A::tail.
Referenced by ED_spreadsheet_context_path_hash(), GPUCodegen::generate_graphs(), and TEST().
void BLI_hash_mm2a_init | ( | BLI_HashMurmur2A * | mm2, |
uint32_t | seed | ||
) |
Definition at line 61 of file hash_mm2a.c.
References BLI_HashMurmur2A::count, BLI_HashMurmur2A::hash, seed, BLI_HashMurmur2A::size, and BLI_HashMurmur2A::tail.
Referenced by ED_spreadsheet_context_path_hash(), GPUCodegen::GPUCodegen(), and TEST().