blender/tests/gtests/blenlib
Bastien Montagne 64c0c13e6e 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
2014-11-14 11:00:26 +01:00
..
BLI_hash_mm2a_test.cc Add Murmur2A hashing feature to BLI 2014-11-14 11:00:26 +01:00
BLI_listbase_test.cc Fix incorrect comments in listbase, add unit test to verify change 2014-08-05 10:33:24 -04:00
BLI_math_color_test.cc Cleanup: test naming 2014-07-19 20:02:14 +10:00
BLI_math_geom_test.cc Cleanup: test naming 2014-07-19 20:02:14 +10:00
BLI_path_util_test.cc Cleanup: test naming 2014-07-19 20:02:14 +10:00
BLI_polyfill2d_test.cc GTest: polyfill2d 2014-09-28 21:43:15 +10:00
BLI_stack_test.cc BLI_Stack add BLI_stack_peek, BLI_stack_discard 2014-09-28 15:08:54 +10:00
BLI_string_test.cc Add thousands separators to scene stats (D646) 2014-07-17 14:54:12 +10:00
CMakeLists.txt Add Murmur2A hashing feature to BLI 2014-11-14 11:00:26 +01:00