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:
Diffstat (limited to 'source/blender/blenlib/intern/BLI_ghash_utils.c')
-rw-r--r--source/blender/blenlib/intern/BLI_ghash_utils.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash_utils.c b/source/blender/blenlib/intern/BLI_ghash_utils.c
index 953ceb3442b..6b8c9b5226c 100644
--- a/source/blender/blenlib/intern/BLI_ghash_utils.c
+++ b/source/blender/blenlib/intern/BLI_ghash_utils.c
@@ -47,13 +47,7 @@
/** \name Generic Key Hash & Comparison Functions
* \{ */
-#if 0
-/* works but slower */
-uint BLI_ghashutil_ptrhash(const void *key)
-{
- return (uint)(intptr_t)key;
-}
-#else
+
/* based python3.3's pointer hashing function */
uint BLI_ghashutil_ptrhash(const void *key)
{
@@ -63,7 +57,7 @@ uint BLI_ghashutil_ptrhash(const void *key)
y = (y >> 4) | (y << (8 * sizeof(void *) - 4));
return (uint)y;
}
-#endif
+
bool BLI_ghashutil_ptrcmp(const void *a, const void *b)
{
return (a != b);