Blender Git Loki
Git Commits -> Revision 64c0c13
Revision 64c0c13 by Bastien Montagne (master) November 14, 2014, 10:00 (GMT) |
Add Murmur2A hashing feature to BLI Murmur2a is a very fast hashing function generation int32 hashes. It also features a very good distribution of generated hashes. However, it is not endianness-agnostic, meaning it will usually generate different hashes for a same key on big- and little-endian architectures. Consequently, **it shall not be used to generate persistent hashes** (never store them in .blend file e.g.). This implementation supports incremental hashing, and is a direct adaptation of reference implementation (in c++): https://smhasher.googlecode.com/svn-history/r130/trunk/MurmurHash2.cpp That cpp code was also used to generate reference values in gtests file. Reviewers: sergey, campbellbarton Reviewed By: campbellbarton Projects: #bf_blender Differential Revision: https://developer.blender.org/D892 |
Commit Details:
Full Hash: 64c0c13e6e08c51e92504631468db864f553d9b5
Parent Commit: c8a9764
Lines Changed: +688, -459
5 Added Paths:
/source/blender/blenlib/BLI_hash_md5.h (+46, -0) (View)
/source/blender/blenlib/BLI_hash_mm2a.h (+45, -0) (View)
/source/blender/blenlib/intern/hash_md5.c (+408, -0) (View)
/source/blender/blenlib/intern/hash_mm2a.c (+107, -0) (View)
/tests/gtests/blenlib/BLI_hash_mm2a_test.cc (+75, -0) (View)
/source/blender/blenlib/BLI_hash_mm2a.h (+45, -0) (View)
/source/blender/blenlib/intern/hash_md5.c (+408, -0) (View)
/source/blender/blenlib/intern/hash_mm2a.c (+107, -0) (View)
/tests/gtests/blenlib/BLI_hash_mm2a_test.cc (+75, -0) (View)
2 Deleted Paths:
/source/blender/blenlib/BLI_md5.h (+0, -47)
/source/blender/blenlib/intern/md5.c (+0, -408)
/source/blender/blenlib/intern/md5.c (+0, -408)