diff options
Diffstat (limited to 'source/blender/blenlib/intern/BLI_ghash.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_ghash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c index 298c9ca4d39..fc432c8c8b7 100644 --- a/source/blender/blenlib/intern/BLI_ghash.c +++ b/source/blender/blenlib/intern/BLI_ghash.c @@ -54,12 +54,14 @@ * * \note Also used by: `BLI_edgehash` & `BLI_smallhash`. */ -const uint hashsizes[] = { +extern const uint BLI_ghash_hash_sizes[]; /* Quiet warning, this is only used by smallhash.c */ +const uint BLI_ghash_hash_sizes[] = { 5, 11, 17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209, 16411, 32771, 65537, 131101, 262147, 524309, 1048583, 2097169, 4194319, 8388617, 16777259, 33554467, 67108879, 134217757, 268435459, }; +#define hashsizes BLI_ghash_hash_sizes #ifdef GHASH_USE_MODULO_BUCKETS # define GHASH_MAX_SIZE 27 |