Blender Git Commit Log

Git Commits -> Revision 1f64371

Revision 1f64371 by Campbell Barton (master)
January 30, 2014, 10:10 (GMT)
Smallhash: refactor and fixes

- BLI_smallhash_remove didnt decrement total entries.
- rename vars to match closer to ghash.
- smallhash_lookup returns NULL when no entry found.
- using a zero value key wasn't supported.
- no need to memset or calloc bucket arrays
- add asserts for unsupported conditions.
- added BLI_smallhash_lookup_p

Commit Details:

Full Hash: 1f64371ec036c2f6ab450e37ad5a9c1120f1c54f
Parent Commit: ab6157a
Lines Changed: +152, -110

2 Modified Paths:

/source/blender/blenlib/BLI_smallhash.h (+19, -17) (Diff)
/source/blender/blenlib/intern/smallhash.c (+133, -93) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021