diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-05-30 12:09:44 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-05-30 12:09:44 +0300 |
commit | 15692c8cfe5aac896227cfd4594e0a6f84df01b0 (patch) | |
tree | 943c10dd03f6d96af53a809220e02a309521163f /source/blender/blenlib/BLI_ghash.h | |
parent | fb829480431250073bd50ecd89b6b9045b89a9c8 (diff) |
Move hash_combine utility function to a more generic place
This way everyone can benefit from it, not only dependency graph.
Diffstat (limited to 'source/blender/blenlib/BLI_ghash.h')
-rw-r--r-- | source/blender/blenlib/BLI_ghash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h index 7e3a009ede8..3d71ad8f63e 100644 --- a/source/blender/blenlib/BLI_ghash.h +++ b/source/blender/blenlib/BLI_ghash.h @@ -167,6 +167,8 @@ unsigned int BLI_ghashutil_inthash_p_murmur(const void *ptr); unsigned int BLI_ghashutil_inthash_p_simple(const void *ptr); bool BLI_ghashutil_intcmp(const void *a, const void *b); +size_t BLI_ghashutil_combine_hash(size_t hash_a, size_t hash_b); + unsigned int BLI_ghashutil_uinthash_v4(const unsigned int key[4]); #define BLI_ghashutil_inthash_v4(key) ( \ |