1
0
mirror of https://github.com/facebook/zstd.git synced 2025-12-03 11:51:14 +03:00

Fix off-by-one in size calculations

This commit is contained in:
Stella Lau
2017-07-19 17:24:09 -07:00
parent 2427a154cb
commit 13a01ffb27
4 changed files with 10 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
// Defines the size of the hash table.
// Note that this is not the number of buckets.
// Currently this should be less than WINDOW_SIZE_LOG + 4?
#define LDM_MEMORY_USAGE 23
#define LDM_MEMORY_USAGE 22
#define HASH_BUCKET_SIZE_LOG 3 // MAX is 4 for now
// Defines the lag in inserting elements into the hash table.