Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-07-14 17:59:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-07-14 17:59:47 +0400
commit8554fa2fad63c20ff0c23894ad0b41087d149a32 (patch)
tree5fffd70a0875d1de39e566f212b2dbe9debbceb7 /source/blender/blenlib/BLI_ghash.h
parent8a04bed7240d5bca7de4eb1dcbb8415692ece8c1 (diff)
GHash, EdgeHash: add debugging function to measure the hash quality
Can use to check on improvements to hash functions.
Diffstat (limited to 'source/blender/blenlib/BLI_ghash.h')
-rw-r--r--source/blender/blenlib/BLI_ghash.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h
index a59023d4f9b..dc29a129dbf 100644
--- a/source/blender/blenlib/BLI_ghash.h
+++ b/source/blender/blenlib/BLI_ghash.h
@@ -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