diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-07-15 07:06:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-07-15 07:08:46 +0400 |
commit | fa8ff63b48d2064701e1cc9929549c79c5dd73c3 (patch) | |
tree | 84ee6b9d7ae6ecdc175c2e3f0345a384b942be2e | |
parent | dbc79e7aba4881cd3e61ad60433ef834965b6799 (diff) |
Edgehash: Improve magic number for hashing
Gives consistently better results. Tested with wide variety of meshes.
-rw-r--r-- | source/blender/blenlib/intern/edgehash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/edgehash.c b/source/blender/blenlib/intern/edgehash.c index b4b3f0dbda3..27c5457370b 100644 --- a/source/blender/blenlib/intern/edgehash.c +++ b/source/blender/blenlib/intern/edgehash.c @@ -93,7 +93,7 @@ BLI_INLINE unsigned int edgehash_keyhash(EdgeHash *eh, unsigned int v0, unsigned { BLI_assert(v0 < v1); - return ((v0 * 39) ^ (v1 * 31)) % eh->nbuckets; + return ((v0 * 65) ^ (v1 * 31)) % eh->nbuckets; } /** |