GHash, EdgeHash: add debugging function to measure the hash quality

Can use to check on improvements to hash functions.
This commit is contained in:
2014-07-14 23:59:47 +10:00
parent 8a04bed724
commit 8554fa2fad
4 changed files with 80 additions and 0 deletions

View File

@@ -224,6 +224,11 @@ BLI_INLINE bool BLI_gsetIterator_done(GSetIterator *gsi) { return BLI_ghashItera
BLI_gsetIterator_done(&gs_iter_) == false; \
BLI_gsetIterator_step(&gs_iter_), i_++)
#ifdef DEBUG
double BLI_ghash_calc_quality(GHash *gh);
double BLI_gset_calc_quality(GSet *gs);
#endif
#ifdef __cplusplus
}
#endif